feat(homeModules:fish): home-manager zsh module init
This commit is contained in:
parent
7e69a8a917
commit
46ab88d4bd
2 changed files with 19 additions and 3 deletions
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
18
home/modules/console/shell/zsh/default.nix
Normal file
18
home/modules/console/shell/zsh/default.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue