Skip to content

Commit

Permalink
Simplify nixos-kexec
Browse files Browse the repository at this point in the history
  • Loading branch information
jmbaur committed Jan 31, 2025
1 parent c33ce72 commit 04e8eca
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions overlays/pkgs/nixos-kexec/nixos-kexec.bash
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,7 @@ declare kexec_jq
choice=${1:-}

if [[ -z $choice ]]; then
declare -a choices

while read -r system_closure; do
choices+=("$system_closure")
done < <(find /nix/var/nix/profiles -name 'system-*')

choice=$(echo "${choices[@]}" | zf)
choice=$(find /nix/var/nix/profiles -name 'system-*' | zf)
fi

if [[ -z $choice ]]; then
Expand Down

0 comments on commit 04e8eca

Please sign in to comment.