#! /usr/bin/env bash
# SPDX-FileCopyrightText: V <v@unfathomable.blue>
# SPDX-License-Identifier: OSL-3.0
set -euo pipefail

git add . && git commit -m WIP || true
for host in kaikou vityaz trieste; do
    target=root@$host.unfathomable.blue
    git push -f $target:/etc/nixos trunk && ssh $target nixos-rebuild test --show-trace --keep-going
done