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 = {