diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100755 index 0000000..329f1b3 --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,11 @@ +#!/usr/bin/env bash +# bootstrap.sh +# Usage: sudo ./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" +