Make nix use xdg base dirs

This commit is contained in:
ItsDrike 2024-04-04 23:59:46 +02:00
parent 219da63bda
commit d8b1ba8940
Signed by: ItsDrike
GPG key ID: FA2745890B7048C0

View file

@ -26,6 +26,13 @@
# Give these users/groups additional rights when connecting to the Nix daemon
# like specifying extra binary caches
trusted-users = [ "root" "@wheel" ];
# Tell nix to use xdg base directories
# If you're just setting this, you will need to move the directories
# manually, nix won't do it for you:
# - mv "$HOME/.nix-defexpr" "$XDG_STATE_HOME/nix/defexpr"
# - mv "$HOME/.nix-profile" "$XDG_STATE_HOME/nix/profile"
use-xdg-base-directories = true;
};
};