summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
diff options
context:
space:
mode:
authorpennae <github@quasiparticle.net>2022-07-28 23:19:15 +0200
committerpennae <github@quasiparticle.net>2022-07-30 15:16:34 +0200
commit2e751c0772b9d48ff6923569adfa661b030ab6a2 (patch)
tree0accd740380b7b7fe3ea5965a3a4517674e79260 /nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
parent52b0ad17e3727fe0c3ca028787128ede5fb86352 (diff)
treewide: automatically md-convert option descriptions
the conversion procedure is simple: - find all things that look like options, ie calls to either `mkOption` or `lib.mkOption` that take an attrset. remember the attrset as the option - for all options, find a `description` attribute who's value is not a call to `mdDoc` or `lib.mdDoc` - textually convert the entire value of the attribute to MD with a few simple regexes (the set from mdize-module.sh) - if the change produced a change in the manual output, discard - if the change kept the manual unchanged, add some text to the description to make sure we've actually found an option. if the manual changes this time, keep the converted description this procedure converts 80% of nixos options to markdown. around 2000 options remain to be inspected, but most of those fail the "does not change the manual output check": currently the MD conversion process does not faithfully convert docbook tags like <code> and <package>, so any option using such tags will not be converted at all.
Diffstat (limited to 'nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix')
-rw-r--r--nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix20
1 files changed, 10 insertions, 10 deletions
diff --git a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
index b9761061aaae..b96baaec7678 100644
--- a/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
+++ b/nixos/modules/services/web-apps/icingaweb2/icingaweb2.nix
@@ -17,7 +17,7 @@ in {
pool = mkOption {
type = str;
default = poolName;
- description = ''
+ description = lib.mdDoc ''
Name of existing PHP-FPM pool that is used to run Icingaweb2.
If not specified, a pool will automatically created with default values.
'';
@@ -26,7 +26,7 @@ in {
libraryPaths = mkOption {
type = attrsOf package;
default = { };
- description = ''
+ description = lib.mdDoc ''
Libraries to add to the Icingaweb2 library path.
The name of the attribute is the name of the library, the value
is the package to add.
@@ -36,7 +36,7 @@ in {
virtualHost = mkOption {
type = nullOr str;
default = "icingaweb2";
- description = ''
+ description = lib.mdDoc ''
Name of the nginx virtualhost to use and setup. If null, no virtualhost is set up.
'';
};
@@ -45,7 +45,7 @@ in {
type = str;
default = "UTC";
example = "Europe/Berlin";
- description = "PHP-compliant timezone specification";
+ description = lib.mdDoc "PHP-compliant timezone specification";
};
modules = {
@@ -64,7 +64,7 @@ in {
"snow" = icingaweb2Modules.theme-snow;
}
'';
- description = ''
+ description = lib.mdDoc ''
Name-package attrset of Icingaweb 2 modules packages to enable.
If you enable modules manually (e.g. via the web ui), they will not be touched.
@@ -84,7 +84,7 @@ in {
level = "CRITICAL";
};
};
- description = ''
+ description = lib.mdDoc ''
config.ini contents.
Will automatically be converted to a .ini file.
If you don't set global.module_path, the module will take care of it.
@@ -108,7 +108,7 @@ in {
dbname = "icingaweb2";
};
};
- description = ''
+ description = lib.mdDoc ''
resources.ini contents.
Will automatically be converted to a .ini file.
@@ -127,7 +127,7 @@ in {
resource = "icingaweb_db";
};
};
- description = ''
+ description = lib.mdDoc ''
authentication.ini contents.
Will automatically be converted to a .ini file.
@@ -145,7 +145,7 @@ in {
resource = "icingaweb_db";
};
};
- description = ''
+ description = lib.mdDoc ''
groups.ini contents.
Will automatically be converted to a .ini file.
@@ -163,7 +163,7 @@ in {
permissions = "*";
};
};
- description = ''
+ description = lib.mdDoc ''
roles.ini contents.
Will automatically be converted to a .ini file.