From de94160adf788cf761333cee0854e699f1f4300e Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Sat, 13 Mar 2021 00:02:50 +0000 Subject: [PATCH] home: zsh: make it enable-able --- home/zsh/default.nix | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/home/zsh/default.nix b/home/zsh/default.nix index 2e9e05c..6cc8519 100644 --- a/home/zsh/default.nix +++ b/home/zsh/default.nix @@ -1,6 +1,13 @@ { 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; dotDir = ".config/zsh"; # Don't clutter $HOME enableCompletion = true; @@ -56,12 +63,12 @@ }; # Fuzzy-wuzzy - programs.fzf = { + config.programs.fzf = lib.mkIf cfg.enable { enable = true; enableZshIntegration = true; }; - programs.dircolors = { + config.programs.dircolors = lib.mkIf cfg.enable { enable = true; }; }