all repos — nixfiles @ 0bbcce66d4aaebba4a41365d7fae816420548ac4

System and user configuration, managed by nix and home-manager

remove unused home-automation role

Alin
commit

0bbcce66d4aaebba4a41365d7fae816420548ac4

parent

f1e5b5c9e66dba560c4a50ade02895ef4a0d6bde

1 file changed, 0 insertions(+), 69 deletions(-)

changed files
D system/roles/home-automation.nix
@@ -1,69 +0,0 @@
-{ - config, - ... -}: -let - inherit (config.networking) domain fqdn; - - image = "ghcr.io/home-assistant/home-assistant"; - tag = "stable"; - - port = 8123; - hostPort = "[::1]:${toString port}"; -in -{ - imports = [ - ./oci.nix - ]; - - virtualisation.oci-containers.containers = { - home-assistant = { - image = "${image}:${tag}"; - autoStart = true; - - autoRemoveOnStop = false; - pull = "always"; - - environment = { - TZ = config.time.timeZone; - }; - volumes = [ - "/var/lib/home-assistant:/config" - ]; - extraOptions = [ - "--network=host" - ]; - }; - matter-server = { - image = "ghcr.io/matter-js/python-matter-server:stable"; - autoStart = true; - - autoRemoveOnStop = false; - pull = "always"; - - volumes = [ - "matter-server:/data" - ]; - extraOptions = [ - "--network=host" - ]; - }; - }; - - services.caddy.virtualHosts = { - "ha.${domain}" = { - extraConfig = '' - tls { - issuer internal { - ca home - } - } - reverse_proxy http://${hostPort} - ''; - }; - }; - - services.dnsmasq.settings.cname = [ - "ha.${domain},${fqdn}" - ]; -}