{ 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; }; }; }