NixOS/modules/servers/sabnzbd.nix

21 lines
410 B
Nix

{ lib, config, ... }:
let
cfg = config.my.servers.sabnzbd;
in
{
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 cfg.enable {
services.sabnzbd = {
inherit (cfg) enable;
group = "piracy";
};
};
}