nixos/hosts/sigma/caddy.nix

14 lines
350 B
Nix

{secrets, ...}: {
services.caddy.virtualHosts = secrets.sigma.caddy.virtualHosts;
# Add caddy to the 'torrent' group to allow viewing downloads
users.groups.torrent.members = ["caddy"];
age.secrets.caddy-auth-sigma = {
file = "${secrets}/secrets/caddy-auth-sigma.age";
mode = "600";
owner = "caddy";
group = "caddy";
};
}