#/usr/bin/env bash # a small script for calling nixos-rebuild switch on a remote host but with less repitition set -euo pipefail ACTION=$1 HOST=$2 exec nixos-rebuild $ACTION \ --use-substitutes \ --no-build-nix \ --use-remote-sudo \ --build-host "noc@10.20.25.2" \ --target-host "noc@10.20.25.2" \ --flake ".#$HOST" \