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 | 7447d7d74faeabd4f5f557dd01f49fb4d16e698e (patch) | |
tree | 06a0c8e6994aa92bc1a4aba5ec167b8024982849 /3modules | |
parent | 823509e3bea2188469668cd85c8746e624a6ca28 (diff) |
m 3 rtorrent: only buidl rutorrent if webcfg is enabled as well
Diffstat (limited to '3modules')
-rw-r--r-- | 3modules/rtorrent.nix | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/3modules/rtorrent.nix b/3modules/rtorrent.nix index 98eb5f10f..02c922516 100644 --- a/3modules/rtorrent.nix +++ b/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 = '' |