correct single machine script

This commit is contained in:
Andreas Zweili 2022-01-31 14:31:55 +01:00
parent 14e2ad595a
commit cb42e3e820
1 changed files with 3 additions and 3 deletions

View File

@ -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"