summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xpush5
1 files changed, 3 insertions, 2 deletions
diff --git a/push b/push
index 81ad75f..8b1814e 100755
--- a/push
+++ b/push
@@ -1,5 +1,6 @@
#!/usr/bin/env bash
where="$1"
-what="$2"
+what=$(realpath "$2")
nix copy --to ssh://root@$where $what
-ssh root@$where $(realpath $what)/bin/switch-to-configuration switch
+ssh root@$where $what/bin/switch-to-configuration switch
+ssh root@$where nix-env --profile /nix/var/nix/profiles/system --set $what