Skip to content

Commit 076c687

Browse files
committed
nixos-anywhere: Install jq when using --no-disko-deps
1 parent 837dd09 commit 076c687

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -719,7 +719,11 @@ runDisko() {
719719
fi
720720
721721
step Formatting hard drive with disko
722-
runSsh "$diskoScript"
722+
local installDeps
723+
if [[ ${diskoDeps} == "n" ]]; then
724+
installDeps="nix --extra-experimental-features 'nix-command flakes' profile install nixpkgs#jq &&"
725+
fi
726+
runSsh "$installDeps$diskoScript"
723727
}
724728
725729
nixosInstall() {

0 commit comments

Comments
 (0)