From e88671567b5020c41fa1880ef08428f91448548b Mon Sep 17 00:00:00 2001 From: Seth Flynn Date: Sun, 27 Jul 2025 08:03:09 -0400 Subject: [PATCH] zsh: only apply plugins when zsh is enabled (#7555) --- modules/programs/zsh/plugins/default.nix | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/programs/zsh/plugins/default.nix b/modules/programs/zsh/plugins/default.nix index 0398aa5b5..5da6461f2 100644 --- a/modules/programs/zsh/plugins/default.nix +++ b/modules/programs/zsh/plugins/default.nix @@ -89,8 +89,10 @@ in }; config = lib.mkIf (cfg.plugins != [ ]) { - home.file = lib.foldl' (a: b: a // b) { } ( - map (plugin: { "${pluginsDir}/${plugin.name}".source = plugin.src; }) cfg.plugins + home.file = lib.mkIf cfg.enable ( + lib.foldl' (a: b: a // b) { } ( + map (plugin: { "${pluginsDir}/${plugin.name}".source = plugin.src; }) cfg.plugins + ) ); programs.zsh = {