about summary refs log tree commit diff
path: root/nixos/modules/services/mail
diff options
context:
space:
mode:
authorAlyssa Ross <hi@alyssa.is>2023-05-28 16:00:33 +0000
committerAlyssa Ross <hi@alyssa.is>2023-06-17 07:57:27 +0000
commit18f2be2e566348a3fdbdaefd236f28cd378aff38 (patch)
tree45b1d73e4cea4f5ae8bebce53bc94243d634ed16 /nixos/modules/services/mail
parentc40880199434b0cbe122bbe6a6fedab0ea6879fe (diff)
downloadnixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.tar
nixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.tar.gz
nixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.tar.bz2
nixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.tar.lz
nixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.tar.xz
nixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.tar.zst
nixlib-18f2be2e566348a3fdbdaefd236f28cd378aff38.zip
nixos/public-inbox: require that URL be non-empty
public-inbox-init doesn't work if passed an empty URL.
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r--nixos/modules/services/mail/public-inbox.nix3
1 files changed, 1 insertions, 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.";
         };