From 9db1368b3eb694a2f943fe7f73a1e59fc15c58ec Mon Sep 17 00:00:00 2001 From: dimti Date: Wed, 12 Apr 2023 08:24:04 +0300 Subject: [PATCH] * correct nix initialization path --- .config/yadm/bootstrap | 10 +++++++--- README.md | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/.config/yadm/bootstrap b/.config/yadm/bootstrap index 9c455f3..f2a8b74 100755 --- a/.config/yadm/bootstrap +++ b/.config/yadm/bootstrap @@ -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 diff --git a/README.md b/README.md index 9508386..ccf8fbe 100644 --- a/README.md +++ b/README.md @@ -1 +1,2 @@ Based from https://github.com/DoomHammer/dotfiles.git +For yadm: 2.5.0