mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-11-13 21:32:23 +03:00
postgrey: fix submodule syntax
This commit is contained in:
parent
e196ad2c66
commit
e2dd0799a8
@ -10,30 +10,34 @@ 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; {
|
||||||
addr = mkOption {
|
options = {
|
||||||
type = nullOr string;
|
addr = mkOption {
|
||||||
default = null;
|
type = nullOr string;
|
||||||
example = "127.0.0.1";
|
default = null;
|
||||||
description = "The address to bind to. Localhost if null";
|
example = "127.0.0.1";
|
||||||
};
|
description = "The address to bind to. Localhost if null";
|
||||||
port = mkOption {
|
};
|
||||||
type = natural';
|
port = mkOption {
|
||||||
default = 10030;
|
type = natural';
|
||||||
description = "Tcp port to bind to";
|
default = 10030;
|
||||||
|
description = "Tcp port to bind to";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
unixSocket = with types; {
|
unixSocket = with types; {
|
||||||
path = mkOption {
|
options = {
|
||||||
type = path;
|
path = mkOption {
|
||||||
default = "/var/run/postgrey.sock";
|
type = path;
|
||||||
description = "Path of the unix socket";
|
default = "/var/run/postgrey.sock";
|
||||||
};
|
description = "Path of the unix socket";
|
||||||
|
};
|
||||||
|
|
||||||
mode = mkOption {
|
mode = mkOption {
|
||||||
type = string;
|
type = string;
|
||||||
default = "0777";
|
default = "0777";
|
||||||
description = "Mode of the unix socket";
|
description = "Mode of the unix socket";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user