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

View File

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