reinstalled homeassistant as oci container

This commit is contained in:
2024-11-28 12:05:20 -06:00
parent f0af39b19a
commit 657dbc4642
4 changed files with 16 additions and 12 deletions

18
flake.lock generated
View File

@@ -1244,11 +1244,11 @@
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-Hripi5dnBGegbRPwCt1+a3oH6b1AQxEoJXodiLE8KKw=", "narHash": "sha256-Hripi5dnBGegbRPwCt1+a3oH6b1AQxEoJXodiLE8KKw=",
"path": "/nix/store/7as6frhriqca7a04y6qlg884cb45xj71-source/home-manager", "path": "/nix/store/47vjafbwqsg8sw0dvm6jldpfns8s9p83-source/home-manager",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/7as6frhriqca7a04y6qlg884cb45xj71-source/home-manager", "path": "/nix/store/47vjafbwqsg8sw0dvm6jldpfns8s9p83-source/home-manager",
"type": "path" "type": "path"
} }
}, },
@@ -1836,11 +1836,11 @@
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-QahOuoQdXshu38W5uO7hLhG/yFkT7S2l8Dxicq0wdGk=", "narHash": "sha256-QahOuoQdXshu38W5uO7hLhG/yFkT7S2l8Dxicq0wdGk=",
"path": "/nix/store/knc49ci8cp75177wlx99z35lgsrxfgcm-source/programs", "path": "/nix/store/cx67a4yaf78kbha7jyk1dqax1mjf059s-source/programs",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/knc49ci8cp75177wlx99z35lgsrxfgcm-source/programs", "path": "/nix/store/cx67a4yaf78kbha7jyk1dqax1mjf059s-source/programs",
"type": "path" "type": "path"
} }
}, },
@@ -1909,11 +1909,11 @@
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-0Ztx5DVQ2I7hvCK/qjGa4XTdRgbzM8rhf19m0al8lVM=", "narHash": "sha256-0Ztx5DVQ2I7hvCK/qjGa4XTdRgbzM8rhf19m0al8lVM=",
"path": "/nix/store/knc49ci8cp75177wlx99z35lgsrxfgcm-source/services/sddm", "path": "/nix/store/cx67a4yaf78kbha7jyk1dqax1mjf059s-source/services/sddm",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/knc49ci8cp75177wlx99z35lgsrxfgcm-source/services/sddm", "path": "/nix/store/cx67a4yaf78kbha7jyk1dqax1mjf059s-source/services/sddm",
"type": "path" "type": "path"
} }
}, },
@@ -1944,12 +1944,12 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-3/fqVrpyXItqSHfYomdottne6Q2q+0dPCGk8JZeEQ0k=", "narHash": "sha256-w0f7+T976ewz6ok9CZ7Mj5bbVn3Jwh9N0a7//1CKBjk=",
"path": "/nix/store/7as6frhriqca7a04y6qlg884cb45xj71-source/system-config", "path": "/nix/store/47vjafbwqsg8sw0dvm6jldpfns8s9p83-source/system-config",
"type": "path" "type": "path"
}, },
"original": { "original": {
"path": "/nix/store/7as6frhriqca7a04y6qlg884cb45xj71-source/system-config", "path": "/nix/store/47vjafbwqsg8sw0dvm6jldpfns8s9p83-source/system-config",
"type": "path" "type": "path"
} }
}, },

View File

@@ -262,7 +262,7 @@
gitlab.enable = true; gitlab.enable = true;
homeassistant.enable = false; homeassistant.enable = true;
ntfy.enable = true; ntfy.enable = true;
}; };

View File

@@ -10,6 +10,8 @@
virtualisation.oci-containers = { virtualisation.oci-containers = {
backend = "docker"; backend = "docker";
containers.homeassistant = { containers.homeassistant = {
autoStart = true;
ports = [ "8123:8123" ];
volumes = [ volumes = [
"/ssd1/Home-Assistant/data:/config" "/ssd1/Home-Assistant/data:/config"
"/run/dbus:/run/dbus:ro" "/run/dbus:/run/dbus:ro"

View File

@@ -147,9 +147,9 @@
tls.certResolver = "cloudflare"; tls.certResolver = "cloudflare";
}; };
homeassistant = { homeassistant = {
entryPoints = [ "localsecure" "websecure" ]; entryPoints = [ "websecure" ];
rule = "Host(`hass.blunkall.us`)"; rule = "Host(`hass.blunkall.us`)";
service = "homepage"; service = "homeassistant";
tls.certResolver = "cloudflare"; tls.certResolver = "cloudflare";
}; };
jellyfin = { jellyfin = {
@@ -248,6 +248,8 @@
nextcloud.loadBalancer.servers = [ { url = "http://192.168.100.15:80"; } ]; nextcloud.loadBalancer.servers = [ { url = "http://192.168.100.15:80"; } ];
ntfy.loadBalancer.servers = [ { url = "http://192.168.100.19"; } ]; ntfy.loadBalancer.servers = [ { url = "http://192.168.100.19"; } ];
homeassistant.loadBalancer.servers = [ { url = "http://192.168.100.10:8123"; } ];
}; };
}; };
}; };