nixos: fix manual build

`mdDoc` is deprecated!
This commit is contained in:
Maximilian Bosch 2024-04-21 23:28:46 +02:00
parent 06906a9e7f
commit 2ee96a1738
No known key found for this signature in database
2 changed files with 18 additions and 18 deletions

View File

@ -50,7 +50,7 @@ in
type = types.lines; type = types.lines;
default = ""; default = "";
example = "fib daddr . mark . iif type local accept"; example = "fib daddr . mark . iif type local accept";
description = lib.mdDoc '' description = ''
Additional nftables rules to be appended to the rpfilter-allow Additional nftables rules to be appended to the rpfilter-allow
chain. chain.

View File

@ -45,22 +45,22 @@ in
{ {
include = mkOption { include = mkOption {
default = null; default = null;
description = mdDoc "File to include additional settings for this provider from."; description = "File to include additional settings for this provider from.";
type = nullOr path; type = nullOr path;
}; };
ssl = mkOption { ssl = mkOption {
default = true; default = true;
description = mdDoc "Whether to use HTTPS for this DDNS provider."; description = "Whether to use HTTPS for this DDNS provider.";
type = bool; type = bool;
}; };
username = mkOption { username = mkOption {
default = null; default = null;
description = mdDoc "Username for this DDNS provider."; description = "Username for this DDNS provider.";
type = nullOr str; type = nullOr str;
}; };
password = mkOption { password = mkOption {
default = null; default = null;
description = mdDoc '' description = ''
Password for this DDNS provider. Password for this DDNS provider.
WARNING: This will be world-readable in the nix store. WARNING: This will be world-readable in the nix store.
@ -71,19 +71,19 @@ in
hostname = mkOption { hostname = mkOption {
default = "*"; default = "*";
example = "your.cool-domain.com"; example = "your.cool-domain.com";
description = mdDoc "Hostname alias(es)."; description = "Hostname alias(es).";
type = either str (listOf str); type = either str (listOf str);
}; };
}; };
in in
{ {
enable = mkEnableOption (mdDoc '' enable = mkEnableOption (''
synchronise your machine's IP address with a dynamic DNS provider using inadyn synchronise your machine's IP address with a dynamic DNS provider using inadyn
''); '');
user = mkOption { user = mkOption {
default = "inadyn"; default = "inadyn";
type = types.str; type = types.str;
description = lib.mdDoc '' description = ''
User account under which inadyn runs. User account under which inadyn runs.
::: {.note} ::: {.note}
@ -96,7 +96,7 @@ in
group = mkOption { group = mkOption {
default = "inadyn"; default = "inadyn";
type = types.str; type = types.str;
description = lib.mdDoc '' description = ''
Group account under which inadyn runs. Group account under which inadyn runs.
::: {.note} ::: {.note}
@ -108,7 +108,7 @@ in
}; };
interval = mkOption { interval = mkOption {
default = "*-*-* *:*:00"; default = "*-*-* *:*:00";
description = mdDoc '' description = ''
How often to check the current IP. How often to check the current IP.
Uses the format described in {manpage}`systemd.time(7)`"; Uses the format described in {manpage}`systemd.time(7)`";
''; '';
@ -117,7 +117,7 @@ in
logLevel = lib.mkOption { logLevel = lib.mkOption {
type = lib.types.enum [ "none" "err" "warning" "info" "notice" "debug" ]; type = lib.types.enum [ "none" "err" "warning" "info" "notice" "debug" ];
default = "notice"; default = "notice";
description = lib.mdDoc "Set inadyn's log level."; description = "Set inadyn's log level.";
}; };
settings = mkOption { settings = mkOption {
default = { }; default = { };
@ -128,17 +128,17 @@ in
allow-ipv6 = mkOption { allow-ipv6 = mkOption {
default = config.networking.enableIPv6; default = config.networking.enableIPv6;
defaultText = "`config.networking.enableIPv6`"; defaultText = "`config.networking.enableIPv6`";
description = mdDoc "Whether to get IPv6 addresses from interfaces."; description = "Whether to get IPv6 addresses from interfaces.";
type = bool; type = bool;
}; };
forced-update = mkOption { forced-update = mkOption {
default = 2592000; default = 2592000;
description = mdDoc "Duration (in seconds) after which an update is forced."; description = "Duration (in seconds) after which an update is forced.";
type = ints.positive; type = ints.positive;
}; };
provider = mkOption { provider = mkOption {
default = { }; default = { };
description = mdDoc '' description = ''
Settings for DDNS providers built-in to inadyn. Settings for DDNS providers built-in to inadyn.
For a list of built-in providers, see `inadyn.conf (5)`. For a list of built-in providers, see `inadyn.conf (5)`.
@ -150,18 +150,18 @@ in
}; };
custom = mkOption { custom = mkOption {
default = { }; default = { };
description = mdDoc '' description = ''
Settings for custom DNS providers. Settings for custom DNS providers.
''; '';
type = attrsOf (submodule { type = attrsOf (submodule {
freeformType = attrs; freeformType = attrs;
options = providerOptions // { options = providerOptions // {
ddns-server = mkOption { ddns-server = mkOption {
description = mdDoc "DDNS server name."; description = "DDNS server name.";
type = str; type = str;
}; };
ddns-path = mkOption { ddns-path = mkOption {
description = mdDoc '' description = ''
DDNS server path. DDNS server path.
See `inadnyn.conf (5)` for a list for format specifiers that can be used. See `inadnyn.conf (5)` for a list for format specifiers that can be used.
@ -177,7 +177,7 @@ in
}; };
configFile = mkOption { configFile = mkOption {
default = null; default = null;
description = mdDoc '' description = ''
Configuration file for inadyn. Configuration file for inadyn.
Setting this will override all other configuration options. Setting this will override all other configuration options.