#!/usr/bin/env bash echo ":: Cleaning" rm -f ./result echo ":: Building" nix-build --attr system ./nixos.nix echo ":: Copying" nix copy --to "ssh://root@simatime.com" ./result echo ":: Switching" path=$(readlink -n ./result) ssh root@simatime.com sudo "$path/bin/switch-to-configuration" switch