summaryrefslogtreecommitdiff
path: root/push
blob: 8b1814ea1dd3318033e1ce1cf76bd586236d714c (plain)
1
2
3
4
5
6
#!/usr/bin/env bash
where="$1"
what=$(realpath "$2")
nix copy --to ssh://root@$where $what
ssh root@$where $what/bin/switch-to-configuration switch
ssh root@$where nix-env --profile /nix/var/nix/profiles/system --set $what