nixos/hosts/architect/sonarr.nix

27 lines
522 B
Nix
Raw Normal View History

2021-07-07 13:13:19 +01:00
with import ./network.nix;
{
services = {
sonarr.enable = true;
nginx.virtualHosts.${sonarrdomain} = {
forceSSL = true;
enableACME = true;
locations."/" = {
proxyPass = "http://localhost:8989";
extraConfig = ''
allow 10.0.0.0/24;
allow 10.3.0.0/24;
deny all;
'';
};
};
};
networking.extraHosts = ''
${architect-lan} ${sonarrdomain}
${architect-wg} ${sonarrdomain}
'';
users.groups.media.members = ["sonarr"];
}