modularize zsh
This commit is contained in:
parent
a5db281643
commit
4ec61784ed
5 changed files with 22 additions and 7 deletions
18
home/modules/zsh/default.nix
Normal file
18
home/modules/zsh/default.nix
Normal file
|
@ -0,0 +1,18 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue