diff options
-rwxr-xr-x | deploy.sh | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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 |