From 7157f8e9d7048792d331e1763653164ab5de713c Mon Sep 17 00:00:00 2001 From: Daniel Flanagan Date: Thu, 20 Feb 2025 12:34:46 -0600 Subject: [PATCH] fix: installer nix flags to work in a "fresh" nix env --- packages/installer.nix | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/installer.nix b/packages/installer.nix index 0feefb1..d696b63 100644 --- a/packages/installer.nix +++ b/packages/installer.nix @@ -18,8 +18,8 @@ pkgs.writeShellApplication { echo "error: disk encryption passwords did not match!" exit 1 fi - nixos_host="$(nix eval --json git+https://git.lyte.dev/lytedev/nix#nixosConfigurations --apply 'builtins.attrNames' | jq -r .[] | fzf --prompt 'Select NixOS configuration')" - partition_scheme="$(nix eval --json git+https://git.lyte.dev/lytedev/nix#diskoConfigurations --apply 'builtins.attrNames' | jq -r .[] | fzf --prompt 'Select disk partition scheme (must match NixOS configuration!)')" + nixos_host="$(nix --extra-experimental-features 'nix-command flakes' eval --json git+https://git.lyte.dev/lytedev/nix#nixosConfigurations --apply 'builtins.attrNames' | jq -r .[] | fzf --prompt 'Select NixOS configuration')" + partition_scheme="$(nix --extra-experimental-features 'nix-command flakes' eval --json git+https://git.lyte.dev/lytedev/nix#diskoConfigurations --apply 'builtins.attrNames' | jq -r .[] | fzf --prompt 'Select disk partition scheme (must match NixOS configuration!)')" disk_path="/dev/$(lsblk -d --raw | tail -n +2 | fzf --prompt 'Select local disk device' | awk '{print $1}')" echo "$pass1" | tr -d "\n" > /tmp/secret.key