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