modularize zsh

This commit is contained in:
Fabian Montero 2024-11-29 00:44:04 -06:00
parent a5db281643
commit 4ec61784ed
5 changed files with 22 additions and 7 deletions

View file

@ -0,0 +1,18 @@
{
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;
};
};
}