m 3 rtorrent: only buidl rutorrent if webcfg is enabled as well
This commit is contained in:
parent
5231d21dfb
commit
5f61d1f92f
@ -78,7 +78,8 @@ let
|
|||||||
# This only works because none of the attrsets returns the same key
|
# This only works because none of the attrsets returns the same key
|
||||||
config = with lib; mkIf cfg.enable (lib.mkMerge [
|
config = with lib; mkIf cfg.enable (lib.mkMerge [
|
||||||
(lib.mkIf webcfg.enable rpcweb-imp)
|
(lib.mkIf webcfg.enable rpcweb-imp)
|
||||||
(lib.mkIf rucfg.enable rutorrent-imp)
|
# only build rutorrent-imp if webcfg is enabled as well
|
||||||
|
(lib.mkIf (webcfg.enable && rucfg.enable) rutorrent-imp)
|
||||||
imp
|
imp
|
||||||
]);
|
]);
|
||||||
};
|
};
|
||||||
@ -111,7 +112,8 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
rutorrent = {
|
rutorrent = {
|
||||||
enable = mkEnableOption "rutorrent";
|
enable = mkEnableOption "rutorrent"; # requires rtorrent.web.enable
|
||||||
|
|
||||||
package = mkOption {
|
package = mkOption {
|
||||||
type = types.package;
|
type = types.package;
|
||||||
description = ''
|
description = ''
|
||||||
|
Loading…
Reference in New Issue
Block a user