some refactoring and modularizing locale
This commit is contained in:
15
modules/nixos/utils/zsh/default.nix
Normal file
15
modules/nixos/utils/zsh/default.nix
Normal file
@@ -0,0 +1,15 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
...
|
||||
}: let
|
||||
inherit (lib) mkIf mkEnableOption;
|
||||
cfg = config.nixos.utils.zsh;
|
||||
in {
|
||||
options = {
|
||||
nixos.utils.zsh.enable = mkEnableOption "Enables zsh shell";
|
||||
};
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh.enable = cfg.enable;
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user