summaryrefslogtreecommitdiff
path: root/nixos
diff options
context:
space:
mode:
Diffstat (limited to 'nixos')
-rw-r--r--nixos/parts/basics.nix20
1 files changed, 20 insertions, 0 deletions
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";
+ };
}