Skip to content

Commit 9a6bb22

Browse files
committed
fix: get target default system-features
1 parent 25d3307 commit 9a6bb22

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/nixos-anywhere.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -948,7 +948,7 @@ SSH
948948
if [[ -n ${flake} ]]; then
949949
system_features=$(nix --extra-experimental-features 'nix-command flakes' eval --apply toString "${flake}"#"${flakeAttr}".nix.settings.system-features)
950950
if [[ -z ${system_features} ]]; then
951-
system_features=$(nix config show system-features)
951+
system_features=$(runSshNoTty -o ConnectTimeout=10 nix --extra-experimental-features 'nix-command' config show system-features)
952952
fi
953953
954954
platform_arch=$(nix --extra-experimental-features 'nix-command flakes' eval --apply 'x: toString (x.nixpkgs.hostPlatform.gcc.arch or "")' "${flake}#${flakeAttr}")

0 commit comments

Comments
 (0)