From b3e73f8b5d94405e2f0fce52e8d219e37e54791d Mon Sep 17 00:00:00 2001 From: Martin Fischer Date: Fri, 29 Nov 2024 08:54:33 +0100 Subject: add zsh --- nixos/parts/basics.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'nixos/parts') diff --git a/nixos/parts/basics.nix b/nixos/parts/basics.nix index 197e22e..77bc68d 100644 --- a/nixos/parts/basics.nix +++ b/nixos/parts/basics.nix @@ -4,4 +4,24 @@ environment.systemPackages = with pkgs; [ git ]; + + users.defaultUserShell = pkgs.zsh; + programs.zsh = { + enable = true; + + # Disabling compinit in /etc/zshrc so that we can call + # compinit with a custom zcompdump location in .zshrc. + enableGlobalCompInit = false; + }; + + environment.sessionVariables = + let + config = "$HOME/config/user"; + in + { + # Set environment variables for software that doesn't + # follow the XDG Base Directory specification. + + ZDOTDIR = "${config}/zsh"; + }; } -- cgit v1.2.3