home: zsh: refactor 'mkIf' block
This commit is contained in:
parent
e2be5f6139
commit
4356ae0f36
|
@ -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