From 46ab88d4bdaf833ce7e09397ce9d80ab4569fbce Mon Sep 17 00:00:00 2001 From: ooks-io Date: Sun, 19 May 2024 14:39:58 +1200 Subject: [PATCH] feat(homeModules:fish): home-manager zsh module init --- home/modules/console/shell/default.nix | 4 +--- home/modules/console/shell/zsh/default.nix | 18 ++++++++++++++++++ 2 files changed, 19 insertions(+), 3 deletions(-) create mode 100644 home/modules/console/shell/zsh/default.nix diff --git a/home/modules/console/shell/default.nix b/home/modules/console/shell/default.nix index 41066fa..f10fcc1 100644 --- a/home/modules/console/shell/default.nix +++ b/home/modules/console/shell/default.nix @@ -3,6 +3,7 @@ imports = [ ./fish ./bash + ./zsh ]; options.homeModules.console.shell = { @@ -12,8 +13,5 @@ bash = { enable = lib.mkEnableOption "Enable bash configuration"; }; - zsh = { - enable = lib.mkEnableOption "Enable zsh configuration"; - }; }; } diff --git a/home/modules/console/shell/zsh/default.nix b/home/modules/console/shell/zsh/default.nix new file mode 100644 index 0000000..79d6ccb --- /dev/null +++ b/home/modules/console/shell/zsh/default.nix @@ -0,0 +1,18 @@ +{ lib, config, ... }: + +let + inherit (lib) mkIf mkEnableOption; + cfg = config.homeModules.console.shell.zsh; +in + +{ + options.homeModules.console.zsh.enable = mkEnableOption ""; + + config = mkIf cfg.enable { + programs.zsh = { + enable = true; + autocd = true; + dotDir = ".config/zsh"; + }; + }; +}