NixOS/modules/servers/sabnzbd.nix
2024-09-11 23:48:56 -06:00

15 lines
400 B
Nix

{ lib, config, proxyReverse, ... }: {
options.my.servers.sabnzbd.enable = lib.mkEnableOption "enable";
config = lib.mkIf config.my.servers.sabnzbd.enable {
services = {
sabnzbd = {
enable = true;
group = "piracy";
openFirewall = true;
};
nginx.virtualHosts."HSoeJdGRd2Orj0n31UGI.${config.my.domain}" =
proxyReverse 3399 // { };
};
};
}