forked from Mirrors/nixos-infect
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:
parent
e01d2272dc
commit
7d06597023
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue