home: zsh: refactor 'mkIf' block

This commit is contained in:
Bruno BELANYI 2022-03-02 16:59:26 +01:00
parent e2be5f6139
commit 4356ae0f36

View file

@ -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;
};
};
}