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