add missing experimental features options to eval commands

This commit is contained in:
2026-07-15 10:08:48 +10:00
parent ebbae5e562
commit 9d2d460640
+2 -2
View File
@@ -43,7 +43,7 @@ export FLAKE_BASE_URL="git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git
echo "Fetching available NixOS hosts from flake..."
mapfile -t options < <(
nix eval --json --no-use-registries --no-accept-flake-config --extra-experimental-features flakes --extra-experimental-features nix-command\
nix eval --json --no-use-registries --no-accept-flake-config --extra-experimental-features "flakes nix-command" \
"''${FLAKE_BASE_URL}#nixosConfigurations" \
--apply builtins.attrNames \
| jq -r '.[]'
@@ -87,7 +87,7 @@ fi
# export TMPDIR=/mnt/install-tmp
# nixos-install --flake "''${FLAKE_BASE_URL}#''${choice}" --no-root-password --no-write-lock-file
if nix eval --refresh --json "''${FLAKE_BASE_URL}#nixosConfigurations.''${choice}.config.disko.devices.disk.main.device" >/dev/null 2>&1; then
if nix eval --refresh --json --extra-experimental-features "flakes nix-command" "''${FLAKE_BASE_URL}#nixosConfigurations.''${choice}.config.disko.devices.disk.main.device" >/dev/null 2>&1; then
disko --mode destroy,format,mount \
--flake "''${FLAKE_BASE_URL}#''${choice}"
else