19 lines
327 B
Nix
19 lines
327 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|