From 5fa7cf9f9776a429aeae0281a1947f55170573d2 Mon Sep 17 00:00:00 2001 From: Herwig Hochleitner Date: Wed, 14 Sep 2016 02:18:18 +0200 Subject: [PATCH] postgrey: add types to service --- nixos/modules/services/mail/postgrey.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/mail/postgrey.nix b/nixos/modules/services/mail/postgrey.nix index 5332939a859..0db631868cc 100644 --- a/nixos/modules/services/mail/postgrey.nix +++ b/nixos/modules/services/mail/postgrey.nix @@ -7,21 +7,25 @@ with lib; let in { options = { - services.postgrey = { + services.postgrey = with types; { enable = mkOption { + type = bool; default = false; description = "Whether to run the Postgrey daemon"; }; inetAddr = mkOption { + type = nullOr string; default = null; example = "127.0.0.1"; description = "The inet address to bind to. If none given, bind to /var/run/postgrey.sock"; }; inetPort = mkOption { + type = int; default = 10030; description = "The tcp port to bind to"; }; greylistText = mkOption { + type = string; default = "Greylisted for %%s seconds"; description = "Response status text for greylisted messages"; };