Merge pull request #203 from nix-community/image-installer

Image installer
This commit is contained in:
Jörg Thalheim 2024-04-17 12:25:14 +02:00 committed by GitHub
commit b9b51b1d31
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View file

@ -29,7 +29,7 @@ build_kexec_installer() {
build_image_installer() {
declare -r tag=$1 arch=$2 tmp=$3
out=$(nix build --print-out-paths --option accept-flake-config true -L ".#packages.${arch}.image-installer-${tag//./}${variant}")
out=$(nix build --print-out-paths --option accept-flake-config true -L ".#packages.${arch}.image-installer-${tag//./}")
echo "$out/iso/nixos-installer-${arch}.iso"
}

View file

@ -73,7 +73,7 @@ in
--arg password "$(cat /var/shared/root-password)" \
--arg onion_address "$(cat /var/shared/onion-hostname)" \
--argjson local_addrs "$local_addrs" \
'{ password: $password, tor: $onion_address, addresses: $local_addrs }' \
'{ pass: $password, tor: $onion_address, addrs: $local_addrs }' \
> /var/shared/login.json
cat /var/shared/login.json | qrencode -s 2 -m 2 -t utf8 -o /var/shared/qrcode.utf8
'';