trivionomicon: mediawiki: add blank defaults

This commit is contained in:
Fabian Montero 2026-02-03 15:30:40 -06:00
parent b4974a7fc6
commit 6e15b6b370

View file

@ -22,6 +22,7 @@ with lib.types; {
skins = lib.mkOption { skins = lib.mkOption {
type = types.attrsOf (types.nullOr str); type = types.attrsOf (types.nullOr str);
description = "skins for mediawiki"; description = "skins for mediawiki";
default = {};
example = ''{ example = ''{
citizen = "flakes.mediawikiSkinCitizen"; citizen = "flakes.mediawikiSkinCitizen";
};''; };'';
@ -29,29 +30,18 @@ with lib.types; {
extraConfig = lib.mkOption { extraConfig = lib.mkOption {
type = str; type = str;
default = "";
example = '' example = ''
# Disable anonymous editing and account creation # Disable anonymous editing and account creation
$wgGroupPermissions['*']['edit'] = false; $wgGroupPermissions['*']['edit'] = false;
$wgGroupPermissions['*']['createaccount'] = 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 { extensions = lib.mkOption {
type = types.attrsOf (types.nullOr types.path); type = types.attrsOf (types.nullOr types.path);
description = "some extensions are included and can enabled by passing null"; description = "some extensions are included and can enabled by passing null";
default = {};
example = ''{ example = ''{
VisualEditor = null; VisualEditor = null;
CategoryTree = null; CategoryTree = null;