diff options
| author | schererleander <leander@schererleander.de> | 2025-04-29 20:41:52 +0200 |
|---|---|---|
| committer | schererleander <leander@schererleander.de> | 2025-04-29 20:41:52 +0200 |
| commit | 5db06024d727b2ca11f03d3ea6153a7946d8f720 (patch) | |
| tree | be1106562808a4197a1f489d073f7085c46f5078 /modules/zsh.nix | |
| parent | ec0137a61d11c12cdef8e1dbd515315077be9c72 (diff) | |
move modules
Diffstat (limited to 'modules/zsh.nix')
| -rw-r--r-- | modules/zsh.nix | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/modules/zsh.nix b/modules/zsh.nix new file mode 100644 index 0000000..9dab7d8 --- /dev/null +++ b/modules/zsh.nix @@ -0,0 +1,29 @@ +{ config, lib, pkgs, ... }: + +let + cfg = config.zsh; +in { + options.zsh.enable = lib.mkEnableOption "Enable zsh and configure"; + + config = lib.mkIf cfg.enable { + programs.zsh = { + enable = true; + autosuggestion.enable = true; + historySubstringSearch.enable = true; + plugins = [ + { + name = "pure"; + src = "${pkgs.pure-prompt}/share/zsh/site-functions"; + } + { + name = "zsh-completions"; + src = "${pkgs.zsh-completions}/share/zsh/site-functions"; + } + { + name = "fast-syntax-highlighting"; + src = "${pkgs.zsh-fast-syntax-highlighting}/share/zsh/site-functions"; + } + ]; + }; + }; +} |
