nix-config/config/basic/xdg.nix
2024-07-11 01:53:56 +02:00

19 lines
566 B
Nix

{
# XDG base spec
environment.sessionVariables = rec {
XDG_CACHE_HOME = "\${HOME}/.cache";
XDG_CONFIG_HOME = "\${HOME}/.config";
XDG_STATE_HOME = "\${HOME}/.local/state";
XDG_DATA_HOME = "\${HOME}/.local/share";
# xdg ninja recommendations
CARGO_HOME = "${XDG_DATA_HOME}/cargo";
CUDA_CACHE_PATH = "${XDG_CACHE_HOME}/nv";
RUSTUP_HOME = "${XDG_DATA_HOME}/rustup";
WINEPREFIX = "${XDG_DATA_HOME}/wine";
TS3_CONFIG_DIR = "${XDG_CONFIG_HOME}/ts3client";
};
nix.extraOptions = ''
use-xdg-base-directories = true
'';
}