Skip to content

Commit 8df29a9

Browse files
committed
Gate another nixosSystem build behind the installPhase flag
1 parent 80f7377 commit 8df29a9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -801,7 +801,9 @@ main() {
801801
if [[ ${phases[disko]} == 1 ]]; then
802802
diskoScript=$(nixBuild "${flake}#${flakeAttr}.system.build.${diskoMode}Script")
803803
fi
804-
nixosSystem=$(nixBuild "${flake}#${flakeAttr}.system.build.toplevel")
804+
if [[ ${phases[install]} == 1 ]]; then
805+
nixosSystem=$(nixBuild "${flake}#${flakeAttr}.system.build.toplevel")
806+
fi
805807
fi
806808
807809
# Installation will fail if non-root user is used for installer.

0 commit comments

Comments
 (0)