diff options
author | makefu <github@syntax-fehler.de> | 2016-08-24 00:19:01 +0200 |
---|---|---|
committer | makefu <github@syntax-fehler.de> | 2016-08-24 00:19:01 +0200 |
commit | 5f61d1f92f8c9fa0c69ec0aceea1884b05b6e666 (patch) | |
tree | 20d0b1ca8ed2415993118c1ddb8aecf9c779d07e /makefu/3modules/rtorrent.nix | |
parent | 5231d21dfbfd0e1aead9d654831e40aa481181a4 (diff) |
m 3 rtorrent: only buidl rutorrent if webcfg is enabled as well
Diffstat (limited to 'makefu/3modules/rtorrent.nix')
-rw-r--r-- | makefu/3modules/rtorrent.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/makefu/3modules/rtorrent.nix b/makefu/3modules/rtorrent.nix index 98eb5f10f..02c922516 100644 --- a/makefu/3modules/rtorrent.nix +++ b/makefu/3modules/rtorrent.nix @@ -78,7 +78,8 @@ let # This only works because none of the attrsets returns the same key config = with lib; mkIf cfg.enable (lib.mkMerge [ (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 ]); }; @@ -111,7 +112,8 @@ let }; rutorrent = { - enable = mkEnableOption "rutorrent"; + enable = mkEnableOption "rutorrent"; # requires rtorrent.web.enable + package = mkOption { type = types.package; description = '' |