From 47916c423bf9e14ad908b9963c20ab5f670b9196 Mon Sep 17 00:00:00 2001 From: osbm Date: Mon, 10 Mar 2025 00:40:57 +0300 Subject: [PATCH] move the secrets to its own folder --- modules/caddy.nix | 6 ++++++ modules/secrets.nix | 6 ------ 2 files changed, 6 insertions(+), 6 deletions(-) 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"; - }; }; }) ];