2022-01-31 12:28:59 +01:00
|
|
|
#!/usr/bin/env bash
|
|
|
|
|
|
|
|
rsa_key="~/.nixos/secrets/ssh_keys/ansible/ansible.key"
|
2022-01-31 14:31:55 +01:00
|
|
|
export NIX_SSHOPTS="-t -i $rsa_key"
|
2022-01-31 12:28:59 +01:00
|
|
|
|
|
|
|
host=$1
|
2022-01-31 14:31:55 +01:00
|
|
|
fqdn="$host.2li.local"
|
2023-06-09 07:37:24 +02:00
|
|
|
nixos-rebuild switch --use-remote-sudo --target-host $fqdn --flake ".#$host"
|