summaryrefslogtreecommitdiff
path: root/nixos/parts/basics.nix
blob: 87dfea4ee8491a74eb2eb260e90b48df2500a09a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
{ config, pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    git
    vim
  ];

  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";
    };
}