summary refs log tree commit diff
path: root/nixos/modules/services/mail
diff options
context:
space:
mode:
authorHerwig Hochleitner <herwig@bendlas.net>2016-09-14 02:18:18 +0200
committerHerwig Hochleitner <herwig@bendlas.net>2016-09-27 15:35:02 +0200
commit5fa7cf9f9776a429aeae0281a1947f55170573d2 (patch)
tree9c90604ab33201244ac3f197edde6522f8aba9ca /nixos/modules/services/mail
parent5609fe521daf42af3a8d7d8d15dd68db87efefb0 (diff)
downloadnixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.tar
nixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.tar.gz
nixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.tar.bz2
nixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.tar.lz
nixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.tar.xz
nixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.tar.zst
nixlib-5fa7cf9f9776a429aeae0281a1947f55170573d2.zip
postgrey: add types to service
Diffstat (limited to 'nixos/modules/services/mail')
-rw-r--r--nixos/modules/services/mail/postgrey.nix6
1 files changed, 5 insertions, 1 deletions
diff --git a/nixos/modules/services/mail/postgrey.nix b/nixos/modules/services/mail/postgrey.nix
index 5332939a859d..0db631868cc7 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";
       };