fix: installer nix flags to work in a "fresh" nix env
Some checks failed
/ check (push) Has been cancelled
Some checks failed
/ check (push) Has been cancelled
This commit is contained in:
parent
d75d8cbfb6
commit
7157f8e9d7
1 changed files with 2 additions and 2 deletions
|
@ -18,8 +18,8 @@ pkgs.writeShellApplication {
|
||||||
echo "error: disk encryption passwords did not match!"
|
echo "error: disk encryption passwords did not match!"
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
nixos_host="$(nix eval --json git+https://git.lyte.dev/lytedev/nix#nixosConfigurations --apply 'builtins.attrNames' | jq -r .[] | fzf --prompt 'Select 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 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!)')"
|
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}')"
|
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
|
echo "$pass1" | tr -d "\n" > /tmp/secret.key
|
||||||
|
|
Loading…
Add table
Reference in a new issue