#!/usr/bin/env bash # bootstrap.sh # Usage: nix run .#bootstrap -- # Or: sudo ./scripts/bootstrap.sh set -euo pipefail NEW_HOSTNAME="${1:?missing hostname}" FLAKE_URI="git+https://git.johnogle.info/johno/nixos-configs.git#${NEW_HOSTNAME}" export NIX_CONFIG="experimental-features = nix-command flakes" nixos-rebuild switch --flake "$FLAKE_URI"