#!/usr/bin/env bash set -euo pipefail run_install() { # Configurator for user information, disk selection, and wifi configuration ./configurator # Get username from installer config for reliable error recovery OMARCHY_USER="$(jq -r '.users[0].username' user_credentials.json)" # Install using files generated by the ./configurator archinstall \ --config user_configuration.json \ --creds user_credentials.json \ --silent # No need to ask for sudo during the installation (omarchy itself responsible for removing after install) mkdir -p /mnt/etc/sudoers.d cat >/mnt/etc/sudoers.d/99-omarchy-installer <