summaryrefslogtreecommitdiff
path: root/push
blob: 1fe95062c142ecf79c8689f066ca4704e0a90e82 (plain)
1
2
3
4
5
6
#!/usr/bin/env bash
what=$(realpath "_bild/$1")
where="$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