Skip to content

Commit

Permalink
packet: add deploy.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
vaibhavsagar committed Aug 20, 2019
1 parent 07b163f commit be6aaa0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packet/deploy.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash

set -euxo pipefail

TARGET="root@147.75.38.113"

PROFILE_PATH="$(nix-build --no-out-link default.nix)"
nix-copy-closure --to --use-substitutes $TARGET $PROFILE_PATH
ssh $TARGET -- "nix-env --profile /nix/var/nix/profiles/system --set $PROFILE_PATH && /nix/var/nix/profiles/system/bin/switch-to-configuration switch"

0 comments on commit be6aaa0

Please sign in to comment.