🚚 moved home-assistant to my new yellow
This commit is contained in:
@ -1,15 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
# Use the docker container because it's officially supported.
|
||||
virtualisation.oci-containers = {
|
||||
containers = {
|
||||
home-assistant = {
|
||||
image = "ghcr.io/home-assistant/home-assistant:2022.10.4";
|
||||
volumes =
|
||||
[ "/var/lib/hass:/config" "/etc/localtime:/etc/localtime:ro" ];
|
||||
extraOptions = [ "--privileged" "--network=host" ];
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
@ -8,7 +8,7 @@
|
||||
forceSSL = true;
|
||||
enableACME = true;
|
||||
locations."/" = {
|
||||
proxyPass = "http://100.111.208.75:8123";
|
||||
proxyPass = "http://100.71.31.76:8123";
|
||||
proxyWebsockets = true;
|
||||
};
|
||||
};
|
||||
|
@ -1,14 +0,0 @@
|
||||
{ config, lib, pkgs, ... }:
|
||||
|
||||
{
|
||||
services = {
|
||||
postgresql = {
|
||||
ensureDatabases = [ "hass" ];
|
||||
ensureUsers = [{
|
||||
name = "hass";
|
||||
ensurePermissions = { "DATABASE hass" = "ALL PRIVILEGES"; };
|
||||
}];
|
||||
};
|
||||
postgresqlBackup.databases = [ "hass" ];
|
||||
};
|
||||
}
|
Reference in New Issue
Block a user