homelab/nixos/deploy.sh

5 lines
131 B
Bash
Executable file

#!/bin/bash
nixos-rebuild --impure --flake $(pwd)/$2#$2 --build-host $2@$1 --target-host $2@$1 --fast --use-remote-sudo switch