nixos/hosts/sigma/caddy.nix

14 lines
356 B
Nix
Raw Normal View History

2024-04-16 01:49:39 +02:00
{secrets, ...}: {
2024-05-10 18:50:22 +02:00
services.caddy.virtualHosts = secrets.hosts.sigma.caddy.virtualHosts;
2024-04-22 23:59:18 +02:00
2024-04-24 00:05:25 +02:00
# Add caddy to the 'torrent' group to allow viewing downloads
users.groups.torrent.members = ["caddy"];
2024-04-22 23:59:18 +02:00
age.secrets.caddy-auth-sigma = {
file = "${secrets}/secrets/caddy-auth-sigma.age";
2024-05-09 17:26:55 +02:00
mode = "400";
2024-04-22 23:59:18 +02:00
owner = "caddy";
group = "caddy";
};
2024-04-16 01:49:39 +02:00
}