commit be76737dc93c15d120b6d61ef4845e1fa93d5fbd parent f280f42933e51345aacf0c217781f066976e322c Author: Vincent Demeester <vincent@sbr.pm> Date: Sat, 16 Mar 2019 13:57:59 +0100 dev.rust: enable rustracer only if emacs profile is enabled Signed-off-by: Vincent Demeester <vincent@sbr.pm> Diffstat:
M | modules/profiles/dev.rust.nix | | | 20 | +++++++++++++------- |
1 file changed, 13 insertions(+), 7 deletions(-)
diff --git a/modules/profiles/dev.rust.nix b/modules/profiles/dev.rust.nix @@ -14,11 +14,17 @@ in }; }; }; - config = mkIf cfg.enable { - profiles.dev.enable = true; - home.packages = with pkgs; [ - rustup - rustracer - ]; - }; + config = mkIf cfg.enable (mkMerge [ + { + profiles.dev.enable = true; + home.packages = with pkgs; [ + rustup + ]; + } + (mkIf config.profiles.emacs.enable { + home.packages = with pkgs; [ + rustracer + ]; + }) + ]); }