feat(homeModules:fish): home-manager zsh module init

This commit is contained in:
ooks-io 2024-05-19 14:39:58 +12:00
parent 7e69a8a917
commit 46ab88d4bd
2 changed files with 19 additions and 3 deletions

View file

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

View file

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