postgrey: fix submodule syntax
This commit is contained in:
parent
e196ad2c66
commit
e2dd0799a8
@ -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 {
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user