nixos/public-inbox: require that URL be non-empty

public-inbox-init doesn't work if passed an empty URL.
This commit is contained in:
Alyssa Ross 2023-05-28 16:00:33 +00:00
parent c408801994
commit 18f2be2e56

View File

@ -177,8 +177,7 @@ in
description = lib.mdDoc "The email addresses of the public-inbox.";
};
options.url = mkOption {
type = with types; nullOr str;
default = null;
type = types.nonEmptyStr;
example = "https://example.org/lists/example-discuss";
description = lib.mdDoc "URL where this inbox can be accessed over HTTP.";
};