about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/xdg/xdg_vars.nix
blob: 3f7d5e007600013d6f72a19f5d8d5417151f39c3 (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
{config, ...}: let
  inherit (config.xdg) dataHome;
in {
  # Variables that only have to be set because special applications fail to set reasonable
  # defaults (mostly understandable because of backwards-compatibility, but yeah)
  programs.zsh.sessionVariables = {
    CARGO_HOME = "${dataHome}/cargo";
    GRADLE_USER_HOME = "${dataHome}/gradle";

    #_JAVA_OPTIONS = lib.concatStringsSep " " [
    #        ''-Djava.util.prefs.userRoot="${config.xdg.configHome}/java"''
    #        ''-Djavafx.cachedir="${config.xdg.cacheHome}/openjfx"''
    #      ];
    #GOPATH = "${config.xdg.dataHome}/go";
    #GTK2_RC_FILES = "${config.xdg.configHome}/gtk-2.0/gtkrc";
    #RUSTUP_HOME = "${config.xdg.dataHome}/rustup";
    #NPM_CONFIG_USERCONFIG = "${config.xdg.configHome}/npm/npmrc";
    #NUGET_PACKAGES = "${config.xdg.cacheHome}/NuGetPackages";
    #XAUTHORITY = "${config.xdg.stateHome}/Xauthority";
    #COMPDUMPFILE = "${config.xdg.dataHome}/zsh/.zcompdump}";
    #IPYTHONDIR = "${config.xdg.configHome}/ipython";
    #PARALLEL_HOME = "${config.xdg.configHome}/parallel";
    #STACK_XDG = "1";
    #WINEPREFIX = "${config.xdg.dataHome}/wine";
  };
}