1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-12-02 23:21:02 +01:00

zsh: only apply plugins when zsh is enabled (#7555)

This commit is contained in:
Seth Flynn 2025-07-27 08:03:09 -04:00 committed by GitHub
parent 710771af3d
commit e88671567b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

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