We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6a08e6b commit 8a3b9d1Copy full SHA for 8a3b9d1
1 file changed
pkgs/by-name/ca/calamares-nixos-extensions/src/modules/nixos/main.py
@@ -797,7 +797,16 @@ def run():
797
"nixos-install",
798
"--no-root-passwd",
799
"--root",
800
- root_mount_point
+ root_mount_point,
801
+ # Nix requires its build directory to have no
802
+ # world-writable parent directories. The chroot store that
803
+ # nixos-install uses will use the state dir in the chroot
804
+ # for the build-dir, but the chroot is under /tmp, which
805
+ # is writable. It doesn't have to be in the chroot though,
806
+ # so we can just realign it with the host state dir.
807
+ "--option",
808
+ "build-dir",
809
+ "/nix/var/nix/builds",
810
]
811
)
812
0 commit comments