removed lib.mDoc as it is deprecated in nix 24.05
This commit is contained in:
parent
5a0eeb2dbb
commit
d18ad1d148
15
flake.nix
15
flake.nix
|
@ -49,6 +49,7 @@
|
||||||
cfg = config.services.prometheus.exporters.i2pd;
|
cfg = config.services.prometheus.exporters.i2pd;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
# todo rename lib.mdoc
|
||||||
options.services.prometheus.exporters.i2pd = {
|
options.services.prometheus.exporters.i2pd = {
|
||||||
|
|
||||||
enable = mkEnableOption "Enable the i2pd exporter";
|
enable = mkEnableOption "Enable the i2pd exporter";
|
||||||
|
@ -56,22 +57,31 @@
|
||||||
listenAddress = mkOption {
|
listenAddress = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "127.0.0.1";
|
default = "127.0.0.1";
|
||||||
|
description = ''
|
||||||
|
What address the exporter should listen to.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
port = mkOption {
|
port = mkOption {
|
||||||
type = types.port;
|
type = types.port;
|
||||||
default = 5733;
|
default = 5733;
|
||||||
|
description = ''
|
||||||
|
What port the exporter should listen on.
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
routerAddress = mkOption {
|
routerAddress = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "http://127.0.0.1:7650";
|
default = "http://127.0.0.1:7650";
|
||||||
|
description = ''
|
||||||
|
The endpoint of the router's i2pcontrol protocol. ! Has to be https
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
openFirewall = mkOption {
|
openFirewall = mkOption {
|
||||||
type = types.bool;
|
type = types.bool;
|
||||||
default = false;
|
default = false;
|
||||||
description = lib.mdDoc ''
|
description = ''
|
||||||
Open the appropriate ports in the firewall for i2pd-exporter.
|
Open the appropriate ports in the firewall for i2pd-exporter.
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
@ -79,6 +89,9 @@
|
||||||
routerPassword = mkOption {
|
routerPassword = mkOption {
|
||||||
type = types.str;
|
type = types.str;
|
||||||
default = "itoopie";
|
default = "itoopie";
|
||||||
|
description = ''
|
||||||
|
The password for the i2pcontrol endpoint, by default itoopie
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue