2023-05-18 06:57:58 +02:00
|
|
|
{
|
|
|
|
# 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";
|
2023-05-18 06:57:58 +02:00
|
|
|
};
|
2024-06-13 22:27:05 +02:00
|
|
|
nix.extraOptions = ''
|
|
|
|
use-xdg-base-directories = true
|
|
|
|
'';
|
2023-05-18 06:57:58 +02:00
|
|
|
}
|