summaryrefslogtreecommitdiff
path: root/deploy.sh
diff options
context:
space:
mode:
Diffstat (limited to 'deploy.sh')
-rwxr-xr-xdeploy.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh
index 232221c..096b205 100755
--- a/deploy.sh
+++ b/deploy.sh
@@ -1,8 +1,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