From 8a49b35ee1477b2ff80ec28ac06d4b45360b7624 Mon Sep 17 00:00:00 2001 From: Saber Haj Rabiee Date: Wed, 17 Sep 2025 00:09:40 -0700 Subject: [PATCH] feat: take into effect system-features --- src/nixos-anywhere.sh | 44 +++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) diff --git a/src/nixos-anywhere.sh b/src/nixos-anywhere.sh index d97d83a1..936e100e 100755 --- a/src/nixos-anywhere.sh +++ b/src/nixos-anywhere.sh @@ -1036,16 +1036,44 @@ main() { sshConnection="root@${sshHost}" fi - # Get substituters from the machine and add them to the installer - if [[ ${machineSubstituters} == "y" && -n ${flake} ]]; then - substituters=$(nix --extra-experimental-features 'nix-command flakes' eval --apply toString "${flake}"#"${flakeAttr}".nix.settings.substituters) - trustedPublicKeys=$(nix --extra-experimental-features 'nix-command flakes' eval --apply toString "${flake}"#"${flakeAttr}".nix.settings.trusted-public-keys) - - runSsh sh <> ~/.config/nix/nix.conf -echo "extra-trusted-public-keys = ${trustedPublicKeys}" >> ~/.config/nix/nix.conf +echo "${nixConfContent}" >> ~/.config/nix/nix.conf SSH + fi fi if [[ ${phases[disko]} == 1 ]]; then