home: zsh: make it enable-able
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
a6f5661a68
commit
de94160adf
|
@ -1,6 +1,13 @@
|
||||||
{ config, pkgs, lib, ... }:
|
{ config, pkgs, lib, ... }:
|
||||||
|
let
|
||||||
|
cfg = config.my.home.zsh;
|
||||||
|
in
|
||||||
{
|
{
|
||||||
programs.zsh = {
|
options.my.home.zsh = with lib.my; {
|
||||||
|
enable = mkDisableOption "zsh configuration";
|
||||||
|
};
|
||||||
|
|
||||||
|
config.programs.zsh = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
dotDir = ".config/zsh"; # Don't clutter $HOME
|
dotDir = ".config/zsh"; # Don't clutter $HOME
|
||||||
enableCompletion = true;
|
enableCompletion = true;
|
||||||
|
@ -56,12 +63,12 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
# Fuzzy-wuzzy
|
# Fuzzy-wuzzy
|
||||||
programs.fzf = {
|
config.programs.fzf = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableZshIntegration = true;
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.dircolors = {
|
config.programs.dircolors = lib.mkIf cfg.enable {
|
||||||
enable = true;
|
enable = true;
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue