I’m trying to set up soft-serve on nixos, but I’m unable to authenticate as admin user. The configuration is as follows:
{
pkgs,
config,
...
}: {
services.soft-serve = {
enable = true;
settings = {
name = "Git-Pi";
log_format = "text";
http = {
public_url = "<REDACTED>";
};
ssh = {
listen_addr = ":23231";
public_url = "<REDACTED>";
max_timeout = 30;
idle_timeout = 120;
};
stats.listen_addr = ":23233";
initial_admin_keys = [ ''ssh-ed25519 AAAAC3...''];
};
};
}
The problem seems to be that the YAML builder stores the admin ssh keys in a strange way. It always adds a linebreak after the key block (ssh-ed25519 AAACAC… LINEBREAK mail@example.com). Is there a way to prevent this?