Skip to content

Commit ff8fbfb

Browse files
authored
Merge pull request #135 from numtide/non-nixos-quirk
add workaround when running in non-nixos environments
2 parents dad3cde + f44ce5b commit ff8fbfb

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)