nixos/sshd: fix example rendering

This commit is contained in:
Sandro Jäckel 2023-06-30 17:13:31 +02:00
parent b1434f14da
commit 9999996fd6
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5

View file

@ -279,10 +279,12 @@ in
settings = mkOption { settings = mkOption {
description = lib.mdDoc "Configuration for `sshd_config(5)`."; description = lib.mdDoc "Configuration for `sshd_config(5)`.";
default = { }; default = { };
example = literalExpression ''{ example = literalExpression ''
UseDns = true; {
PasswordAuthentication = false; UseDns = true;
}''; PasswordAuthentication = false;
}
'';
type = types.submodule ({name, ...}: { type = types.submodule ({name, ...}: {
freeformType = settingsFormat.type; freeformType = settingsFormat.type;
options = { options = {