nix_config/home/modules/zsh/default.nix

19 lines
327 B
Nix
Raw Normal View History

2024-11-29 07:44:04 +01:00
{
config,
lib,
pkgs,
...
}:
with lib; let
cfg = config.local.services.zsh;
in {
options.local.services.zsh.enable = mkEnableOption "zsh settings";
config = mkIf cfg.enable {
programs.zsh = {
enable = true;
syntaxHighlighting.enable = true;
initExtra = import ./zshrc.nix pkgs;
};
};
}