Browse Source

* correct nix initialization path

master
dimti 2 years ago
parent
commit
9db1368b3e
  1. 10
      .config/yadm/bootstrap
  2. 1
      README.md

10
.config/yadm/bootstrap

@ -6,9 +6,13 @@ install_nix() {
# https://github.com/shadowrylander/shadowrylander/blob/35bb51822c46578d0a5da5810263fa85d464043c/.config/yadm/bootstrap#L56 # https://github.com/shadowrylander/shadowrylander/blob/35bb51822c46578d0a5da5810263fa85d464043c/.config/yadm/bootstrap#L56
install_nix_bin() { install_nix_bin() {
curl -L https://nixos.org/nix/install | sh 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 command -v nix >/dev/null 2>&1 || install_nix_bin

1
README.md

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