Added package option to transmission
This commit is contained in:
@@ -76,6 +76,8 @@ in {
|
|||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
package = mkPackageOption pkgs "transmission_4" { };
|
||||||
|
|
||||||
stateDir = mkOption {
|
stateDir = mkOption {
|
||||||
type = types.path;
|
type = types.path;
|
||||||
default = "${nixarr.stateDir}/transmission";
|
default = "${nixarr.stateDir}/transmission";
|
||||||
@@ -366,7 +368,7 @@ in {
|
|||||||
if cfg.flood.enable
|
if cfg.flood.enable
|
||||||
then pkgs.flood-for-transmission
|
then pkgs.flood-for-transmission
|
||||||
else null;
|
else null;
|
||||||
package = pkgs.transmission_4;
|
package = cfg.package;
|
||||||
openRPCPort = cfg.openFirewall;
|
openRPCPort = cfg.openFirewall;
|
||||||
openPeerPorts = cfg.openFirewall;
|
openPeerPorts = cfg.openFirewall;
|
||||||
credentialsFile = cfg.credentialsFile;
|
credentialsFile = cfg.credentialsFile;
|
||||||
|
|||||||
Reference in New Issue
Block a user