0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 21:50:33 +03:00

nixos: remove all uses of lib.mdDoc

these changes were generated with nixq 0.0.2, by running

  nixq ">> lib.mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> mdDoc[remove] Argument[keep]" --batchmode nixos/**.nix
  nixq ">> Inherit >> mdDoc[remove]" --batchmode nixos/**.nix

two mentions of the mdDoc function remain in nixos/, both of which
are inside of comments.

Since lib.mdDoc is already defined as just id, this commit is a no-op as
far as Nix (and the built manual) is concerned.
This commit is contained in:
stuebinm 2024-04-13 14:54:15 +02:00 committed by Jonathan Ringer
parent 1dd996e59a
commit 6afb255d97
1701 changed files with 13694 additions and 13865 deletions

View file

@ -64,14 +64,14 @@ in
{
# interface
options.services.moodle = {
enable = mkEnableOption (lib.mdDoc "Moodle web application");
enable = mkEnableOption "Moodle web application";
package = mkPackageOption pkgs "moodle" { };
initialPassword = mkOption {
type = types.str;
example = "correcthorsebatterystaple";
description = lib.mdDoc ''
description = ''
Specifies the initial password for the admin, i.e. the password assigned if the user does not already exist.
The password specified here is world-readable in the Nix store, so it should be changed promptly.
'';
@ -81,18 +81,18 @@ in
type = mkOption {
type = types.enum [ "mysql" "pgsql" ];
default = "mysql";
description = lib.mdDoc "Database engine to use.";
description = "Database engine to use.";
};
host = mkOption {
type = types.str;
default = "localhost";
description = lib.mdDoc "Database host address.";
description = "Database host address.";
};
port = mkOption {
type = types.port;
description = lib.mdDoc "Database host port.";
description = "Database host port.";
default = {
mysql = 3306;
pgsql = 5432;
@ -103,20 +103,20 @@ in
name = mkOption {
type = types.str;
default = "moodle";
description = lib.mdDoc "Database name.";
description = "Database name.";
};
user = mkOption {
type = types.str;
default = "moodle";
description = lib.mdDoc "Database user.";
description = "Database user.";
};
passwordFile = mkOption {
type = types.nullOr types.path;
default = null;
example = "/run/keys/moodle-dbpassword";
description = lib.mdDoc ''
description = ''
A file containing the password corresponding to
{option}`database.user`.
'';
@ -129,13 +129,13 @@ in
else if pgsqlLocal then "/run/postgresql"
else null;
defaultText = literalExpression "/run/mysqld/mysqld.sock";
description = lib.mdDoc "Path to the unix socket file to use for authentication.";
description = "Path to the unix socket file to use for authentication.";
};
createLocally = mkOption {
type = types.bool;
default = true;
description = lib.mdDoc "Create the database and database user locally.";
description = "Create the database and database user locally.";
};
};
@ -149,7 +149,7 @@ in
enableACME = true;
}
'';
description = lib.mdDoc ''
description = ''
Apache configuration can be done by adapting {option}`services.httpd.virtualHosts`.
See [](#opt-services.httpd.virtualHosts) for further information.
'';
@ -165,7 +165,7 @@ in
"pm.max_spare_servers" = 4;
"pm.max_requests" = 500;
};
description = lib.mdDoc ''
description = ''
Options for the Moodle PHP pool. See the documentation on `php-fpm.conf`
for details on configuration directives.
'';
@ -174,7 +174,7 @@ in
extraConfig = mkOption {
type = types.lines;
default = "";
description = lib.mdDoc ''
description = ''
Any additional text to be appended to the config.php
configuration file. This is a PHP script. For configuration
details, see <https://docs.moodle.org/37/en/Configuration_file>.