NixOS/modules/servers/radarr.nix
2025-10-12 19:59:46 -06:00

19 lines
332 B
Nix

{
lib,
config,
...
}:
let
setup = import ../factories/mkserver.nix { inherit lib config; };
cfg = config.my.servers.radarr;
in
{
options.my.servers.radarr = setup.mkOptions "radarr" "movies" 7878;
config = lib.mkIf cfg.enable {
services.radarr = {
inherit (cfg) enable;
group = "piracy";
};
};
}