From b47f7ba4f51a449a78731dffed50c111b79af756 Mon Sep 17 00:00:00 2001 From: MoritzBoehme Date: Sun, 9 Jan 2022 14:11:55 +0100 Subject: [PATCH] :rocket: enables nm_dmenu conditionally --- modules/desktop/apps/rofi/default.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/desktop/apps/rofi/default.nix b/modules/desktop/apps/rofi/default.nix index d01165a..2380e21 100644 --- a/modules/desktop/apps/rofi/default.nix +++ b/modules/desktop/apps/rofi/default.nix @@ -8,7 +8,10 @@ package = pkgs.rofi.override { plugins = with pkgs; [ rofi-calc ]; }; theme = ./dracula.rasi; }; - home.packages = with pkgs; [ networkmanager_dmenu ]; + home.packages = with pkgs; + [ + (lib.mkIf config.networking.networkmanager.enable networkmanager_dmenu) + ]; xdg = { enable = true; configFile."networkmanager-dmenu/config.ini".text = ''