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.
This commit is contained in:
Michael Ashton 2023-06-05 02:15:00 -07:00 committed by GitHub
parent e01d2272dc
commit 7d06597023
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ makeConf() {
networking.domain = "$(hostname -d)"; networking.domain = "$(hostname -d)";
services.openssh.enable = true; services.openssh.enable = true;
users.users.root.openssh.authorizedKeys.keys = [$(while read -r line; do echo -n " users.users.root.openssh.authorizedKeys.keys = [$(while read -r line; do echo -n "
\"$line\" "; done <<< "$keys") ''$line'' "; done <<< "$keys")
]; ];
} }
EOF EOF