* correct nix initialization path

This commit is contained in:
2023-04-12 08:24:04 +03:00
parent 17ade4a5e4
commit 9db1368b3e
2 changed files with 8 additions and 3 deletions

View File

@ -6,9 +6,13 @@ install_nix() {
# https://github.com/shadowrylander/shadowrylander/blob/35bb51822c46578d0a5da5810263fa85d464043c/.config/yadm/bootstrap#L56
install_nix_bin() {
curl -L https://nixos.org/nix/install | sh
if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
. '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
fi
# TODO: Use that for per-use installation: . /nix/var/nix/profiles/per-user/${USER}/profile/etc/profile.d/nix-daemon.sh
# if [ -e '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh' ]; then
# . '/nix/var/nix/profiles/default/etc/profile.d/nix-daemon.sh'
# fi
. $HOME/.nix-profile/etc/profile.d/nix.sh
}
command -v nix >/dev/null 2>&1 || install_nix_bin

View File

@ -1 +1,2 @@
Based from https://github.com/DoomHammer/dotfiles.git
For yadm: 2.5.0