modularizing zsh
This commit is contained in:
@@ -49,5 +49,6 @@
|
||||
"${systemModules}/utils/npm"
|
||||
"${systemModules}/utils/obsidian"
|
||||
"${systemModules}/utils/yubikey"
|
||||
"${systemModules}/utils/zsh"
|
||||
];
|
||||
}
|
||||
|
||||
15
system/modules/utils/zsh/default.nix
Normal file
15
system/modules/utils/zsh/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.modules.utils.zsh;
|
||||
in {
|
||||
options = {
|
||||
modules.utils.zsh.enable = mkEnableOption "Enables android tools";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh.enable = cfg.enable;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user