move the secrets to its own folder

This commit is contained in:
Osman Faruk Bayram 2025-03-10 00:40:57 +03:00
parent d7659df192
commit 47916c423b
2 changed files with 6 additions and 6 deletions

View file

@ -50,6 +50,12 @@
environment.systemPackages = with pkgs; [ environment.systemPackages = with pkgs; [
nssTools nssTools
]; ];
age.secrets.cloudflare = {
file = ../secrets/cloudflare.age;
path = "/etc/caddy/.env";
owner = "caddy";
mode = "0600";
};
systemd.services.caddy.serviceConfig = { systemd.services.caddy.serviceConfig = {
EnvironmentFile = "/etc/caddy/.env"; EnvironmentFile = "/etc/caddy/.env";

View file

@ -34,12 +34,6 @@
owner = "osbm"; owner = "osbm";
mode = "0644"; mode = "0644";
}; };
cloudflare = {
file = ../secrets/cloudflare.age;
path = "/etc/caddy/.env";
owner = "caddy";
mode = "0600";
};
}; };
}) })
]; ];