From 7d065970237b0c9e8b32e5db94866113727956c7 Mon Sep 17 00:00:00 2001 From: Michael Ashton Date: Mon, 5 Jun 2023 02:15:00 -0700 Subject: [PATCH] Fix DigitalOcean install (#152) DigitalOcean now adds an SSH key containing double-quotes, which breaks nixos-infect. This commit fixes this by using two single-quotes instead of a double-quote to wrap the SSH public key lines. --- nixos-infect | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nixos-infect b/nixos-infect index 047f603..c4142de 100644 --- a/nixos-infect +++ b/nixos-infect @@ -41,7 +41,7 @@ makeConf() { networking.domain = "$(hostname -d)"; services.openssh.enable = true; users.users.root.openssh.authorizedKeys.keys = [$(while read -r line; do echo -n " - \"$line\" "; done <<< "$keys") + ''$line'' "; done <<< "$keys") ]; } EOF