Skip to content

Commit

Permalink
don't build disko script if disko is deselected
Browse files Browse the repository at this point in the history
  • Loading branch information
Mic92 committed Nov 14, 2024
1 parent 51d347d commit 68901d0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/nixos-anywhere.sh
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,9 @@ main() {
fi

if [[ ${buildOnRemote} == "n" ]] && [[ -n ${flake} ]] && [[ ${hardwareConfigBackend} != "none" ]]; then
diskoScript=$(nixBuild "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.${diskoMode}Script")
if [[ ${phases[disko]} == 1 ]]; then
diskoScript=$(nixBuild "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.${diskoMode}Script")
fi
nixosSystem=$(nixBuild "${flake}#nixosConfigurations.\"${flakeAttr}\".config.system.build.toplevel")
fi

Expand Down

0 comments on commit 68901d0

Please sign in to comment.