diff options
| author | Alejandro Soto <alejandro@34project.org> | 2026-02-08 22:50:31 -0600 |
|---|---|---|
| committer | Alejandro Soto <alejandro@34project.org> | 2026-02-08 22:50:31 -0600 |
| commit | 2c2da365eee012ca9d39f2c9dafddef833a1680b (patch) | |
| tree | 0c2a9d5fba4dae93cf09c2e09b8bf76000f3207a /trivionomicon/modules/mediawiki | |
| parent | d301d6dc27789f4c06c98509c372bfd12672aaf6 (diff) | |
| parent | 878a8a72db8421cf9f893866c79772a551e74614 (diff) | |
Merge commit '47390d14a36a30720f152bda440152e6334c6b30' into master
Diffstat (limited to 'trivionomicon/modules/mediawiki')
| -rw-r--r-- | trivionomicon/modules/mediawiki/options.nix | 18 |
1 files changed, 4 insertions, 14 deletions
diff --git a/trivionomicon/modules/mediawiki/options.nix b/trivionomicon/modules/mediawiki/options.nix index 06acbf1..3ab7894 100644 --- a/trivionomicon/modules/mediawiki/options.nix +++ b/trivionomicon/modules/mediawiki/options.nix @@ -15,13 +15,14 @@ with lib.types; { passwordFile = lib.mkOption { type = types.path; - description = "path of passwordfile for mediawiki"; + description = "A file containing the initial password for the administrator account 'admin'"; example = "/run/keys/mediawiki-password"; }; skins = lib.mkOption { type = types.attrsOf (types.nullOr str); description = "skins for mediawiki"; + default = {}; example = ''{ citizen = "flakes.mediawikiSkinCitizen"; };''; @@ -29,29 +30,18 @@ with lib.types; { extraConfig = lib.mkOption { type = str; + default = ""; example = '' # Disable anonymous editing and account creation $wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['createaccount'] = false; - - $wgCitizenThemeDefault = 'dark'; - $wgCitizenShowPageTools = 'login'; - $wgLogos = [ - 'icon' => "https://example.com/favicon.png", - '1x' => "https://example.com/favicon.png", - '2x' => "https://example.com/favicon.png", - ]; - - $wgEnableEmail = false; #TODO: arreglar esto - $wgNoReplyAddress = 'mediawiki@example.com'; - $wgEmergencyContact = 'mediawiki@example.com'; - $wgPasswordSender = 'mediawiki@example.com'; ''; }; extensions = lib.mkOption { type = types.attrsOf (types.nullOr types.path); description = "some extensions are included and can enabled by passing null"; + default = {}; example = ''{ VisualEditor = null; CategoryTree = null; |
