i2pd module: optionSet -> submodule
This commit is contained in:
parent
b73ca0df27
commit
7e5a24c23a
@ -187,26 +187,23 @@ in
|
|||||||
|
|
||||||
outTunnels = mkOption {
|
outTunnels = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = with types; loaOf optionSet;
|
type = with types; loaOf (submodule (
|
||||||
description = ''
|
{ name, config, ... }: {
|
||||||
Connect to someone as a client and establish a local accept endpoint
|
|
||||||
'';
|
|
||||||
options = [ ({ name, config, ... }: {
|
|
||||||
options = commonTunOpts name;
|
options = commonTunOpts name;
|
||||||
config = {
|
config = {
|
||||||
name = mkDefault name;
|
name = mkDefault name;
|
||||||
};
|
};
|
||||||
}) ];
|
}
|
||||||
|
));
|
||||||
|
description = ''
|
||||||
|
Connect to someone as a client and establish a local accept endpoint
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
inTunnels = mkOption {
|
inTunnels = mkOption {
|
||||||
default = {};
|
default = {};
|
||||||
type = with types; loaOf optionSet;
|
type = with types; loaOf (submodule (
|
||||||
description = ''
|
{ name, config, ... }: {
|
||||||
Serve something on I2P network at port and delegate requests to address inPort.
|
|
||||||
'';
|
|
||||||
options = [ ({ name, config, ... }: {
|
|
||||||
|
|
||||||
options = {
|
options = {
|
||||||
inPort = mkOption {
|
inPort = mkOption {
|
||||||
type = types.int;
|
type = types.int;
|
||||||
@ -219,12 +216,14 @@ in
|
|||||||
description = "I2P nodes that are allowed to connect to this service.";
|
description = "I2P nodes that are allowed to connect to this service.";
|
||||||
};
|
};
|
||||||
} // commonTunOpts name;
|
} // commonTunOpts name;
|
||||||
|
|
||||||
config = {
|
config = {
|
||||||
name = mkDefault name;
|
name = mkDefault name;
|
||||||
};
|
};
|
||||||
|
}
|
||||||
}) ];
|
));
|
||||||
|
description = ''
|
||||||
|
Serve something on I2P network at port and delegate requests to address inPort.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user