From 18f2be2e566348a3fdbdaefd236f28cd378aff38 Mon Sep 17 00:00:00 2001 From: Alyssa Ross Date: Sun, 28 May 2023 16:00:33 +0000 Subject: [PATCH] nixos/public-inbox: require that URL be non-empty public-inbox-init doesn't work if passed an empty URL. --- nixos/modules/services/mail/public-inbox.nix | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/nixos/modules/services/mail/public-inbox.nix b/nixos/modules/services/mail/public-inbox.nix index 099997fa9fe9..a7d7097065a2 100644 --- a/nixos/modules/services/mail/public-inbox.nix +++ b/nixos/modules/services/mail/public-inbox.nix @@ -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."; };