diff options
author | Franck Cuny <franck@fcuny.net> | 2022-02-09 18:00:55 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2022-02-09 18:00:55 -0800 |
commit | 373811b495ac7296332aa078daf6f59964ae94a6 (patch) | |
tree | a05b03d303be2fd66dee33dd182bc9dd836654b0 /users | |
parent | systems: add a MoTD (diff) | |
download | world-373811b495ac7296332aa078daf6f59964ae94a6.tar.gz |
home-manager: expand zsh configuration
Diffstat (limited to 'users')
-rw-r--r-- | users/fcuny/common.nix | 1 | ||||
-rw-r--r-- | users/zsh.nix | 21 |
2 files changed, 22 insertions, 0 deletions
diff --git a/users/fcuny/common.nix b/users/fcuny/common.nix index 4c81bae..b4d405b 100644 --- a/users/fcuny/common.nix +++ b/users/fcuny/common.nix @@ -17,5 +17,6 @@ ./git.nix ./go.nix ./tmux.nix + ./zsh.nix ]; } diff --git a/users/zsh.nix b/users/zsh.nix new file mode 100644 index 0000000..be827b4 --- /dev/null +++ b/users/zsh.nix @@ -0,0 +1,21 @@ +{config, lib, pkgs, ...}: + +{ + + xdg.configFile."zsh/personal".source = config.lib.file.mkOutOfStoreSymlink ../configs/zsh; + + programs.zsh = { + enable = true; + enableAutosuggestions = true; + enableCompletion = true; + defaultKeymap = "emacs"; + history = { + save = 100000; + extended = true; + ignoreDups = true; + }; + initExtra = '' + source ${config.xdg.configHome}/zsh/personal/init.zsh + ''; + }; +} |