summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlejandro Soto <alejandro@34project.org>2026-02-08 22:35:36 -0600
committerAlejandro Soto <alejandro@34project.org>2026-02-08 22:35:36 -0600
commit95b84e3a61cefd9e282d4485797b3dd7e7d6d276 (patch)
tree9572eaf0d9240caac1d513c9c3adcfad9016ba69
parent0fb95d328dd1e178775d4e91e7c5a5c29de9400c (diff)
trivionomicon: mediawiki: formatting
-rw-r--r--trivionomicon/modules/mediawiki/options.nix42
-rw-r--r--trivionomicon/modules/mediawiki/sys.nix3
2 files changed, 23 insertions, 22 deletions
diff --git a/trivionomicon/modules/mediawiki/options.nix b/trivionomicon/modules/mediawiki/options.nix
index 06acbf1..9fe0723 100644
--- a/trivionomicon/modules/mediawiki/options.nix
+++ b/trivionomicon/modules/mediawiki/options.nix
@@ -12,21 +12,21 @@ with lib.types; {
description = "name of the wiki";
example = "posixlycorrect wiki";
};
-
+
passwordFile = lib.mkOption {
type = types.path;
description = "path of passwordfile for mediawiki";
example = "/run/keys/mediawiki-password";
};
-
+
skins = lib.mkOption {
type = types.attrsOf (types.nullOr str);
description = "skins for mediawiki";
- example = ''{
- citizen = "flakes.mediawikiSkinCitizen";
- };'';
+ example = '' {
+ citizen = "flakes.mediawikiSkinCitizen";
+ };'';
};
-
+
extraConfig = lib.mkOption {
type = str;
example = ''
@@ -52,21 +52,21 @@ with lib.types; {
extensions = lib.mkOption {
type = types.attrsOf (types.nullOr types.path);
description = "some extensions are included and can enabled by passing null";
- example = ''{
- VisualEditor = null;
- CategoryTree = null;
- CiteThisPage = null;
- Scribunto = null;
- Cite = null;
- CodeEditor = null;
- Math = null;
- MultimediaViewer = null;
- PdfHandler = null;
- Poem = null;
- SecureLinkFixer = null;
- WikiEditor = null;
- ParserFunctions = null;
- };'';
+ example = '' {
+ VisualEditor = null;
+ CategoryTree = null;
+ CiteThisPage = null;
+ Scribunto = null;
+ Cite = null;
+ CodeEditor = null;
+ Math = null;
+ MultimediaViewer = null;
+ PdfHandler = null;
+ Poem = null;
+ SecureLinkFixer = null;
+ WikiEditor = null;
+ ParserFunctions = null;
+ };'';
};
};
}
diff --git a/trivionomicon/modules/mediawiki/sys.nix b/trivionomicon/modules/mediawiki/sys.nix
index 525ec3e..b6a9273 100644
--- a/trivionomicon/modules/mediawiki/sys.nix
+++ b/trivionomicon/modules/mediawiki/sys.nix
@@ -4,7 +4,8 @@
cfg,
doctrine,
...
-}: with lib; {
+}:
+with lib; {
services = {
nginx = {
virtualHosts.${cfg.hostName} = {