Skip to content

Commit e8a9775

Browse files
committed
nixos/nzbget: add option to override package
1 parent fd281bd commit e8a9775

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

nixos/modules/services/misc/nzbget.nix

+3-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ with lib;
44

55
let
66
cfg = config.services.nzbget;
7-
pkg = pkgs.nzbget;
7+
pkg = cfg.package;
88
stateDir = "/var/lib/nzbget";
99
configFile = "${stateDir}/nzbget.conf";
1010
configOpts = concatStringsSep " " (mapAttrsToList (name: value: "-o ${name}=${escapeShellArg (toStr value)}") cfg.settings);
@@ -51,6 +51,8 @@ in
5151
MainDir = "/data";
5252
};
5353
};
54+
55+
package = mkPackageOption pkgs "nzbget" { };
5456
};
5557
};
5658

0 commit comments

Comments
 (0)