summaryrefslogtreecommitdiff
path: root/deploy.sh
blob: 387c3ee298f493f2604be8f7e6babfa6b240181c (plain)
1
2
3
4
5
6
7
8
9
# 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