From cb42e3e820fbe9fc102ff1d1b5538814fa612bb0 Mon Sep 17 00:00:00 2001 From: Andreas Zweili Date: Mon, 31 Jan 2022 14:31:55 +0100 Subject: [PATCH] correct single machine script --- scripts/update_single_machine.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/update_single_machine.sh b/scripts/update_single_machine.sh index 1ceec16..3eb4f87 100755 --- a/scripts/update_single_machine.sh +++ b/scripts/update_single_machine.sh @@ -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"