1 2 3 4 5
#!/usr/bin/env bash where="$1" what="$2" nix copy --to ssh://root@$where $what ssh root@$where $(realpath $what)/bin/switch-to-configuration switch