about summary refs log tree commit diff stats
path: root/modules/home.legacy/conf/xdg/xdg_vars.nix
blob: aa2f30d43dd07bce89d4d276a2445dcde08e6b86 (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
{config, ...}: let
  inherit (config.xdg) dataHome;
in {
  # FIXME: Move these options in relevant modules, that are connected to their software.
  #        <2024-10-21>

  # Variables that only have to be set because special applications fail to set reasonable
  # defaults (mostly understandable because of backwards-compatibility, but yeah)
  home.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";
  };
}