postgrey: fix submodule syntax

This commit is contained in:
Gregor Kleen 2017-01-02 15:19:00 +01:00
parent e196ad2c66
commit e2dd0799a8

View File

@ -10,6 +10,7 @@ with lib; let
socket = with types; addCheck (either (submodule unixSocket) (submodule inetSocket)) (x: x ? "path" || x ? "port"); socket = with types; addCheck (either (submodule unixSocket) (submodule inetSocket)) (x: x ? "path" || x ? "port");
inetSocket = with types; { inetSocket = with types; {
options = {
addr = mkOption { addr = mkOption {
type = nullOr string; type = nullOr string;
default = null; default = null;
@ -22,8 +23,10 @@ with lib; let
description = "Tcp port to bind to"; description = "Tcp port to bind to";
}; };
}; };
};
unixSocket = with types; { unixSocket = with types; {
options = {
path = mkOption { path = mkOption {
type = path; type = path;
default = "/var/run/postgrey.sock"; default = "/var/run/postgrey.sock";
@ -36,6 +39,7 @@ with lib; let
description = "Mode of the unix socket"; description = "Mode of the unix socket";
}; };
}; };
};
in { in {