fix: installer nix flags to work in a "fresh" nix env
Some checks failed
/ check (push) Has been cancelled

This commit is contained in:
Daniel Flanagan 2025-02-20 12:34:46 -06:00
parent d75d8cbfb6
commit 7157f8e9d7

View file

@ -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