diff --git a/rpi4.nix b/rpi4.nix index ccc2ea3..f02480f 100644 --- a/rpi4.nix +++ b/rpi4.nix @@ -57,17 +57,6 @@ with builtins; { recommendedOptimisation = true; recommendedGzipSettings = true; recommendedProxySettings = true; - - virtualHosts = { - ${config.networking.domain} = { - enableACME = true; - forceSSL = true; - locations."/" = { - proxyPass = "http://localhost:8123"; - proxyWebsockets = true; - }; - }; - }; }; programs.zsh.enable = true; diff --git a/services/home-assistant.nix b/services/home-assistant.nix index 4b3e263..7b3bdff 100644 --- a/services/home-assistant.nix +++ b/services/home-assistant.nix @@ -19,6 +19,14 @@ in { proxyWebsockets = true; }; }; + ${config.networking.domain} = { + enableACME = true; + forceSSL = true; + locations."/" = { + proxyPass = "http://localhost:8123"; + proxyWebsockets = true; + }; + }; }; };