diff options
author | Ben Sima <ben@bsima.me> | 2019-02-01 09:44:19 -0800 |
---|---|---|
committer | Ben Sima <ben@bsima.me> | 2019-02-01 09:44:42 -0800 |
commit | 14f481f541335e418a7d034e9587fcf90d015acb (patch) | |
tree | cb4c6fcb6327f964e9cdd796bd4b6c63dc748aaa /deploy.sh | |
parent | 7ecd892c3d785b2ce1c3e0b8a90b921ef835d31a (diff) |
Add deploy script
Diffstat (limited to 'deploy.sh')
-rwxr-xr-x | deploy.sh | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/deploy.sh b/deploy.sh new file mode 100755 index 0000000..232221c --- /dev/null +++ b/deploy.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +rm -f ./result +nix-build --attr system ./nixos.nix +nix copy --to "ssh://root@simatime.com" ./result + +path=$(readlink -n ./result) +ssh root@simatime.com sudo "$path/bin/switch-to-configuration" switch |