🚚 moved home-assistant to my new yellow

This commit is contained in:
2022-10-17 20:25:42 -04:00
parent 8ba5e30ed3
commit 7deda40119
5 changed files with 16 additions and 46 deletions

View File

@ -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" ];
};
};
};
}

View File

@ -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;
};
};

View File

@ -1,14 +0,0 @@
{ config, lib, pkgs, ... }:
{
services = {
postgresql = {
ensureDatabases = [ "hass" ];
ensureUsers = [{
name = "hass";
ensurePermissions = { "DATABASE hass" = "ALL PRIVILEGES"; };
}];
};
postgresqlBackup.databases = [ "hass" ];
};
}