NixOS/modules/servers/sabnzbd.nix
2025-10-01 13:40:05 -06:00

21 lines
429 B
Nix

{ lib, config, ... }:
let
cfg = config.my.servers.sabnzbd;
in
{
options.my.servers.sabnzbd = {
enable = lib.mkEnableOption "SABnzbd Usenet downloader";
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";
};
};
}