mirror of
https://github.com/elitak/nixos-infect.git
synced 2024-09-11 11:36:40 +03:00
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
@ -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 New Issue
Block a user