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