summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBen Sima <ben@bsima.me>2019-02-04 12:49:09 -0800
committerBen Sima <ben@bsima.me>2019-02-04 12:49:09 -0800
commit757eecb95b87194f275a4a0a83e304f20fe228a0 (patch)
treebf72d5764bc7c5e8a1bc2ad803907dde3d0558f1
parent5284aa28f88010b9c72e33c4b61d40345b9bf473 (diff)
Add some logging details
-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