NixOS/modules/servers/sabnzbd.nix

18 lines
383 B
Nix

{ lib, config, ... }:
{
options.my.servers.sabnzbd = {
enable = lib.mkEnableOption "enable";
port = lib.mkOption {
type = lib.types.int;
default = 3399;
description = "The port to access sabnzbd web-ui";
};
};
config = lib.mkIf config.my.servers.sabnzbd.enable {
services.sabnzbd = {
enable = true;
group = "piracy";
};
};
}