10 lines
318 B
Bash
Executable File
10 lines
318 B
Bash
Executable File
# usage:
|
|
# $ ./deploy.sh <hostname> <ip>
|
|
# example usage:
|
|
# $ ./deply.sh 109-199-104-83 109.199.104.83
|
|
nix run github:nix-community/nixos-anywhere -- \
|
|
--extra-files ~/.ssh/remote_secrets/$2 \
|
|
--generate-hardware-config nixos-generate-config ./hardware-configuration.nix \
|
|
--flake .#$1 \
|
|
--target-host root@$2
|