summary refs log tree commit diff stats
path: root/sys/environment/default.nix
blob: 879c54181e8349168d73522ac95c4bf7201e33d6 (plain) (blame)
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
36
37
{lib, ...}: {
  environment = {
    sessionVariables = {
      XDG_CACHE_HOME = "\${HOME}/.cache";
      XDG_CONFIG_HOME = "\${HOME}/.config";
      XDG_BIN_HOME = "\${HOME}/.local/bin";
      XDG_DATA_HOME = "\${HOME}/.local/share";
      XDG_STATE_HOME = "\${HOME}/.local/state";
      ZDOTDIR = "\${HOME}/.config/zsh";
      CARGO_HOME = "\${HOME}/.local/share/cargo";
      ANDROID_HOME = "\${HOME}/.local/share/android";
      ANSIBLE_HOME = "\${HOME}/.local/share/ansible";
      #_JAVA_OPTIONS	= '-Djava.util.prefs.userRoot="\${XDG_CONFIG_HOME}/java"';
      WINEPREFIX = "\${HOME}/.local/share/wine";
      GNUPGHOME = lib.mkForce "";
      GRADLE_USER_HOME = "\${HOME}/.local/share/gradle";
      GTK2_RC_FILES = "\${HOME}/.config/gtk-2.0/gtkrc";
      EDITOR = "nvim";
      GOPATH = "\${HOME}/.local/share/go";
      XCOMPOSECACHE = "\${HOME}/.cache/X11/xcompose";
      CDPATH = ".:\${HOME}:\${HOME}/repos/:\${HOME}/srv";
      NIXOS_OZONE_WL = "1"; # wayland for electron apps

      #PYTHONSTARTUP="/etc/python/pythonrc";

      PATH = [
        "\${XDG_BIN_HOME}"
      ];
    };
    etc.crypttab = {
      enable = true;
      text = ''
        storage UUID=f4ba9aae-e34f-4a72-98ab-88787f7c1986 none tpm2-device=auto,noauto
      '';
    };
  };
}