Skip to content
Permalink
Browse files

packet: add deploy.sh

  • Loading branch information...
vaibhavsagar committed Aug 20, 2019
1 parent 07b163f commit be6aaa026c8ebf1efd7c44743a8770b921111a2e
Showing with 9 additions and 0 deletions.
  1. +9 −0 packet/deploy.sh
@@ -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.
You can’t perform that action at this time.