added syntaxhighlighting option
This commit is contained in:
@@ -7,15 +7,27 @@
|
||||
pkgs,
|
||||
self',
|
||||
...
|
||||
}: {
|
||||
nixpkgs.overlays = [
|
||||
(final: prev: {
|
||||
zsh = self'.packages.zsh;
|
||||
})
|
||||
];
|
||||
|
||||
programs.zsh = {
|
||||
enable = true;
|
||||
}: {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 = {
|
||||
|
||||
@@ -11,6 +11,9 @@
|
||||
newHostConfiguration
|
||||
system
|
||||
zsh
|
||||
({...}: {
|
||||
enableHighlighting = true;
|
||||
})
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user