added syntaxhighlighting option

This commit is contained in:
2026-10-24 15:48:34 +01:00
parent 254b47b835
commit d053a697bb
2 changed files with 24 additions and 9 deletions

View File

@@ -7,15 +7,27 @@
pkgs, pkgs,
self', self',
... ...
}: { }: {config, ...}: let
nixpkgs.overlays = [ lib = pkgs.lib;
(final: prev: { in {
zsh = self'.packages.zsh; imports = [];
}) options = {
]; enableHighlighting = lib.mkOption {
type = lib.types.bool;
programs.zsh = { default = false;
enable = true; description = "Enable syntax highlighting";
};
};
config = {
nixpkgs.overlays = [
(final: prev: {
zsh = self'.packages.zsh;
})
];
programs.zsh = {
enable = true;
enableSyntaxHighlighting = config.enableHighlighting;
};
}; };
}); });
perSystem = { perSystem = {

View File

@@ -11,6 +11,9 @@
newHostConfiguration newHostConfiguration
system system
zsh zsh
({...}: {
enableHighlighting = true;
})
]; ];
}; };
} }