Skip to content

Commit be6aaa0

Browse files
committed
packet: add deploy.sh
1 parent 07b163f commit be6aaa0

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

packet/deploy.sh

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/usr/bin/env bash
2+
3+
set -euxo pipefail
4+
5+
TARGET="root@147.75.38.113"
6+
7+
PROFILE_PATH="$(nix-build --no-out-link default.nix)"
8+
nix-copy-closure --to --use-substitutes $TARGET $PROFILE_PATH
9+
ssh $TARGET -- "nix-env --profile /nix/var/nix/profiles/system --set $PROFILE_PATH && /nix/var/nix/profiles/system/bin/switch-to-configuration switch"

0 commit comments

Comments
 (0)