Skip to content

Commit f44ce5b

Browse files
committed
add workaround when running in non-nixos environments
1 parent a75b9c5 commit f44ce5b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/nixos-anywhere.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -380,6 +380,9 @@ fi
380380
step Installing NixOS
381381
ssh_ <<SSH
382382
set -efu ${enable_debug}
383+
# when running not in nixos we might miss this directory, but it's needed in the nixos chroot during installation
384+
export PATH=\$PATH:/run/current-system/sw/bin
385+
383386
# needed for installation if initrd-secrets are used
384387
mkdir -p /mnt/tmp
385388
chmod 777 /mnt/tmp

0 commit comments

Comments
 (0)