diff --git a/modules/caddy.nix b/modules/caddy.nix index 1e2387d..dcca752 100644 --- a/modules/caddy.nix +++ b/modules/caddy.nix @@ -50,6 +50,12 @@ environment.systemPackages = with pkgs; [ nssTools ]; + age.secrets.cloudflare = { + file = ../secrets/cloudflare.age; + path = "/etc/caddy/.env"; + owner = "caddy"; + mode = "0600"; + }; systemd.services.caddy.serviceConfig = { EnvironmentFile = "/etc/caddy/.env"; diff --git a/modules/secrets.nix b/modules/secrets.nix index 724731b..5f4af4b 100644 --- a/modules/secrets.nix +++ b/modules/secrets.nix @@ -34,12 +34,6 @@ owner = "osbm"; mode = "0644"; }; - cloudflare = { - file = ../secrets/cloudflare.age; - path = "/etc/caddy/.env"; - owner = "caddy"; - mode = "0600"; - }; }; }) ];