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:
parent
710771af3d
commit
e88671567b
1 changed files with 4 additions and 2 deletions
|
|
@ -89,8 +89,10 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf (cfg.plugins != [ ]) {
|
config = lib.mkIf (cfg.plugins != [ ]) {
|
||||||
home.file = lib.foldl' (a: b: a // b) { } (
|
home.file = lib.mkIf cfg.enable (
|
||||||
map (plugin: { "${pluginsDir}/${plugin.name}".source = plugin.src; }) cfg.plugins
|
lib.foldl' (a: b: a // b) { } (
|
||||||
|
map (plugin: { "${pluginsDir}/${plugin.name}".source = plugin.src; }) cfg.plugins
|
||||||
|
)
|
||||||
);
|
);
|
||||||
|
|
||||||
programs.zsh = {
|
programs.zsh = {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue