trivionomicon: mediawiki: formatting

This commit is contained in:
Alejandro Soto 2026-02-08 22:51:02 -06:00
parent 47390d14a3
commit f057233bc5
2 changed files with 23 additions and 22 deletions

View file

@ -12,22 +12,22 @@ with lib.types; {
description = "name of the wiki"; description = "name of the wiki";
example = "posixlycorrect wiki"; example = "posixlycorrect wiki";
}; };
passwordFile = lib.mkOption { passwordFile = lib.mkOption {
type = types.path; type = types.path;
description = "A file containing the initial password for the administrator account 'admin'"; description = "A file containing the initial password for the administrator account 'admin'";
example = "/run/keys/mediawiki-password"; example = "/run/keys/mediawiki-password";
}; };
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 = {}; default = {};
example = ''{ example = '' {
citizen = "flakes.mediawikiSkinCitizen"; citizen = "flakes.mediawikiSkinCitizen";
};''; };'';
}; };
extraConfig = lib.mkOption { extraConfig = lib.mkOption {
type = str; type = str;
default = ""; default = "";
@ -42,21 +42,21 @@ with lib.types; {
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 = {}; default = {};
example = ''{ example = '' {
VisualEditor = null; VisualEditor = null;
CategoryTree = null; CategoryTree = null;
CiteThisPage = null; CiteThisPage = null;
Scribunto = null; Scribunto = null;
Cite = null; Cite = null;
CodeEditor = null; CodeEditor = null;
Math = null; Math = null;
MultimediaViewer = null; MultimediaViewer = null;
PdfHandler = null; PdfHandler = null;
Poem = null; Poem = null;
SecureLinkFixer = null; SecureLinkFixer = null;
WikiEditor = null; WikiEditor = null;
ParserFunctions = null; ParserFunctions = null;
};''; };'';
}; };
}; };
} }

View file

@ -4,7 +4,8 @@
cfg, cfg,
doctrine, doctrine,
... ...
}: with lib; { }:
with lib; {
services = { services = {
nginx = { nginx = {
virtualHosts.${cfg.hostName} = { virtualHosts.${cfg.hostName} = {