nix-super/scripts
Alexander Bantyev 2384d36083
A setting to follow XDG Base Directory standard
XDG Base Directory is a standard for locations for storing various
files. Nix has a few files which seem to fit in the standard, but
currently use a custom location directly in the user's ~, polluting
it:

- ~/.nix-profile
- ~/.nix-defexpr
- ~/.nix-channels

This commit adds a config option (use-xdg-base-directories) to follow
the XDG spec and instead use the following locations:

- $XDG_STATE_HOME/nix/profile
- $XDG_STATE_HOME/nix/defexpr
- $XDG_STATE_HOME/nix/channels

If $XDG_STATE_HOME is not set, it is assumed to be ~/.local/state.

Co-authored-by: Théophane Hufschmitt <7226587+thufschmitt@users.noreply.github.com>
Co-authored-by: Tim Fenney <kodekata@gmail.com>
Co-authored-by: pasqui23 <pasqui23@users.noreply.github.com>
Co-authored-by: Artturin <Artturin@artturin.com>
Co-authored-by: John Ericson <Ericson2314@Yahoo.com>
2023-02-10 20:14:06 +04:00
..
bigsur-nixbld-user-migration.sh
check-hydra-status.sh
create-darwin-volume.sh
install-darwin-multi-user.sh
install-multi-user.sh A setting to follow XDG Base Directory standard 2023-02-10 20:14:06 +04:00
install-nix-from-closure.sh A setting to follow XDG Base Directory standard 2023-02-10 20:14:06 +04:00
install-systemd-multi-user.sh Add escape for systemd service in installer script 2023-01-14 03:46:11 +08:00
install.in fix uname -m return value for armv6l/armv7l 2022-09-20 15:36:36 +09:00
local.mk Add fish suport to installer 2022-09-13 12:56:16 -04:00
nix-profile-daemon.fish.in Fix Nix installation on older versions of fish 2023-01-03 21:14:01 +01:00
nix-profile-daemon.sh.in A setting to follow XDG Base Directory standard 2023-02-10 20:14:06 +04:00
nix-profile.fish.in Fix Nix installation on older versions of fish 2023-01-03 21:14:01 +01:00
nix-profile.sh.in A setting to follow XDG Base Directory standard 2023-02-10 20:14:06 +04:00
prepare-installer-for-github-actions