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