postgrey: add types to service

This commit is contained in:
Herwig Hochleitner 2016-09-14 02:18:18 +02:00
parent 5609fe521d
commit 5fa7cf9f97

View file

@ -7,21 +7,25 @@ with lib; let
in { in {
options = { options = {
services.postgrey = { services.postgrey = with types; {
enable = mkOption { enable = mkOption {
type = bool;
default = false; default = false;
description = "Whether to run the Postgrey daemon"; description = "Whether to run the Postgrey daemon";
}; };
inetAddr = mkOption { inetAddr = mkOption {
type = nullOr string;
default = null; default = null;
example = "127.0.0.1"; example = "127.0.0.1";
description = "The inet address to bind to. If none given, bind to /var/run/postgrey.sock"; description = "The inet address to bind to. If none given, bind to /var/run/postgrey.sock";
}; };
inetPort = mkOption { inetPort = mkOption {
type = int;
default = 10030; default = 10030;
description = "The tcp port to bind to"; description = "The tcp port to bind to";
}; };
greylistText = mkOption { greylistText = mkOption {
type = string;
default = "Greylisted for %%s seconds"; default = "Greylisted for %%s seconds";
description = "Response status text for greylisted messages"; description = "Response status text for greylisted messages";
}; };