about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2022-02-09 18:00:55 -0800
committerFranck Cuny <franck@fcuny.net>2022-02-09 18:00:55 -0800
commit373811b495ac7296332aa078daf6f59964ae94a6 (patch)
treea05b03d303be2fd66dee33dd182bc9dd836654b0 /users
parentsystems: add a MoTD (diff)
downloadworld-373811b495ac7296332aa078daf6f59964ae94a6.tar.gz
home-manager: expand zsh configuration
Diffstat (limited to 'users')
-rw-r--r--users/fcuny/common.nix1
-rw-r--r--users/zsh.nix21
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
+    '';
+  };
+}