From 189cf2bffcf7dec7c7bcadab8f95fdd2da4bcca5 Mon Sep 17 00:00:00 2001 From: Patryk Niedźwiedziński Date: Sun, 7 Mar 2021 14:49:46 +0100 Subject: XDG + new lan --- machines/base.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'machines/base.nix') diff --git a/machines/base.nix b/machines/base.nix index 5c545ae..75935ec 100755 --- a/machines/base.nix +++ b/machines/base.nix @@ -36,9 +36,17 @@ }; ## === XDG === - environment.variables = { + environment.variables = rec { XDG_CONFIG_HOME = "$HOME/.config"; + XDG_CACHE_HOME = "$HOME/.cache"; XDG_DATA_HOME = "$HOME/.local/share"; + XDG_RUNTIME_DIR = "/run/user/$UID"; + + # == XDG overrides == + ICEAUTHORITY = "${XDG_CACHE_HOME}/ICEauthority"; + XAUTHORITY = "$XDG_RUNTIME_DIR/Xauthority"; + LESSHISTFILE = "${XDG_CACHE_HOME}/lesshist"; + MPLAYER_HOME = "$XDG_CONFIG_HOME/mplayer"; }; ## === Vim configuration === -- cgit 1.4.1