summaryrefslogtreecommitdiff
path: root/nixos/parts/basics.nix
blob: aa6eff9f816cfbe36c27943397690c3922494d04 (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
29
30
31
32
33
34
35
{ config, pkgs, ... }:

{
  environment.systemPackages = with pkgs; [
    git
    vim

    file
    htop
    ripgrep
    tree
    # TODO: use a tree alternative that understands .gitignore
    wget
  ];

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