From 5e6f872a3aadccff43e422d7e6578d2816df1872 Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Sat, 25 May 2024 04:12:09 +0000 Subject: [PATCH] fix(nix): make `install-host-script` enable `extra-experimental-features` --- scripts/install-host.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/install-host.bash b/scripts/install-host.bash index 96914a47..bc976508 100755 --- a/scripts/install-host.bash +++ b/scripts/install-host.bash @@ -69,7 +69,7 @@ main() { new_sys_key="$(gen-system-key "${system}" "${priv_key_path}")" printf "Finished generating system keys\n" local nixos_anywhere_log - nixos_anywhere_log="$(nix run github:nix-community/nixos-anywhere -- --flake "${flake}" "${conn}" --stop-after-disko -p "${ssh_port}" 2>&1 | tee >(cat >&2))" + nixos_anywhere_log="$(nix --extra-experimental-features "nix-command flakes" run github:nix-community/nixos-anywhere -- --flake "${flake}" "${conn}" --stop-after-disko -p "${ssh_port}" 2>&1 | tee >(cat >&2))" local ssh_login_key="${nixos_anywhere_log##*$'\n'}" ssh_login_key="${ssh_login_key#*\'}" ssh_login_key="${ssh_login_key%\'*}"