nix-config/config/basic/xdg.nix

19 lines
566 B
Nix
Raw Permalink Normal View History

{
# 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";
2024-07-11 01:53:56 +02:00
TS3_CONFIG_DIR = "${XDG_CONFIG_HOME}/ts3client";
};
2024-06-13 22:27:05 +02:00
nix.extraOptions = ''
use-xdg-base-directories = true
'';
}