From 28ac9f2d1fb9bcfc3f14e23d60c0c0a043ef016a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Laure=CE=B7t?= Date: Tue, 20 Dec 2022 16:17:00 +0100 Subject: [PATCH] feat: add zsh --- hosts/neodymium/configuration.nix | 38 +++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) diff --git a/hosts/neodymium/configuration.nix b/hosts/neodymium/configuration.nix index 5a73d89..1d33549 100644 --- a/hosts/neodymium/configuration.nix +++ b/hosts/neodymium/configuration.nix @@ -62,11 +62,13 @@ isNormalUser = true; initialPassword = "laurent"; extraGroups = [ "wheel" "video" ]; + shell = pkgs.zsh; }; home-manager.users.laurent = { home.stateVersion = "22.11"; home.packages = with pkgs; [ exa + duf bat tmux htop @@ -108,6 +110,42 @@ }; }; + programs.zsh = { + enable = true; + enableAutosuggestions = true; + enableSyntaxHighlighting = true; + enableCompletion = true; + sessionVariables = { + MANPAGER = "nvim +Man!"; + VISUAL = "nvim"; + EDITOR = "nvim"; + }; + shellAliases = { + ls = "exa"; + l = "exa -l -h -g --icons --grid --git --time-style=long-iso"; + ll = "exa -l -h -g --icons --grid --git --time-style=long-iso -a"; + cat = "bat"; + df = "duf"; + }; + history = { + size = 1000000000; + path = "$HOME/.zsh_history"; + extended = true; + }; + plugins = [ + { + name = "zsh-nix-shell"; + file = "nix-shell.plugin.zsh"; + src = pkgs.fetchFromGitHub { + owner = "chisui"; + repo = "zsh-nix-shell"; + rev = "v0.5.0"; + sha256 = "0za4aiwwrlawnia4f29msk822rj9bgcygw6a8a6iikiwzjjz0g91"; + }; + } + ]; + }; + programs.git = { enable = true; userName = "Laureηt";