From aa127e8bca6ad796fb0622085e85ac42d91b4467 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Tue, 3 Feb 2026 15:30:40 -0600 Subject: trivionomicon: mediawiki: add blank defaults --- modules/mediawiki/options.nix | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) diff --git a/modules/mediawiki/options.nix b/modules/mediawiki/options.nix index 06acbf1..dc01a74 100644 --- a/modules/mediawiki/options.nix +++ b/modules/mediawiki/options.nix @@ -22,6 +22,7 @@ with lib.types; { 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; -- cgit v1.2.3 From 878a8a72db8421cf9f893866c79772a551e74614 Mon Sep 17 00:00:00 2001 From: Fabian Montero Date: Wed, 4 Feb 2026 20:35:54 -0600 Subject: trivionomicon: mediawiki: update passwordFile option description --- modules/mediawiki/options.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/mediawiki/options.nix b/modules/mediawiki/options.nix index dc01a74..3ab7894 100644 --- a/modules/mediawiki/options.nix +++ b/modules/mediawiki/options.nix @@ -15,7 +15,7 @@ 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"; }; -- cgit v1.2.3