correct single machine script
This commit is contained in:
parent
14e2ad595a
commit
cb42e3e820
|
@ -1,8 +1,8 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
rsa_key="~/.nixos/secrets/ssh_keys/ansible/ansible.key"
|
||||
export NIX_SSHOPTS="-t -i " + rsa_key
|
||||
export NIX_SSHOPTS="-t -i $rsa_key"
|
||||
|
||||
host=$1
|
||||
fqdn="${host}.2li.local"
|
||||
nixos-rebuild switch --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#${host}"
|
||||
fqdn="$host.2li.local"
|
||||
nixos-rebuild switch --use-remote-sudo --build-host localhost --target-host $fqdn --flake ".#$host"
|
||||
|
|
Loading…
Reference in New Issue