blob: 096b2059d1b006757b3df4599d6be8069a07675f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/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
|