Archived
add missing experimental features options to eval commands
This commit is contained in:
+2
-2
@@ -43,7 +43,7 @@ export FLAKE_BASE_URL="git+https://gitea.lan.ddnsgeek.com/beatzaplenty/nixos.git
|
|||||||
|
|
||||||
echo "Fetching available NixOS hosts from flake..."
|
echo "Fetching available NixOS hosts from flake..."
|
||||||
mapfile -t options < <(
|
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" \
|
"''${FLAKE_BASE_URL}#nixosConfigurations" \
|
||||||
--apply builtins.attrNames \
|
--apply builtins.attrNames \
|
||||||
| jq -r '.[]'
|
| jq -r '.[]'
|
||||||
@@ -87,7 +87,7 @@ fi
|
|||||||
# export TMPDIR=/mnt/install-tmp
|
# export TMPDIR=/mnt/install-tmp
|
||||||
# nixos-install --flake "''${FLAKE_BASE_URL}#''${choice}" --no-root-password --no-write-lock-file
|
# 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 \
|
disko --mode destroy,format,mount \
|
||||||
--flake "''${FLAKE_BASE_URL}#''${choice}"
|
--flake "''${FLAKE_BASE_URL}#''${choice}"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user