home: zsh: refactor 'mkIf' block
This commit is contained in:
parent
c259fe87a0
commit
bc56292544
|
@ -7,7 +7,8 @@ in
|
||||||
enable = mkDisableOption "zsh configuration";
|
enable = mkDisableOption "zsh configuration";
|
||||||
};
|
};
|
||||||
|
|
||||||
config.programs.zsh = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable {
|
||||||
|
programs.zsh = {
|
||||||
enable = true;
|
enable = true;
|
||||||
dotDir = ".config/zsh"; # Don't clutter $HOME
|
dotDir = ".config/zsh"; # Don't clutter $HOME
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
@ -82,12 +83,13 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fuzzy-wuzzy
|
# Fuzzy-wuzzy
|
||||||
config.programs.fzf = lib.mkIf cfg.enable {
|
programs.fzf = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
config.programs.dircolors = lib.mkIf cfg.enable {
|
programs.dircolors = {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue