nixos/gollum: remove services.gollum.local-time option

This commit is contained in:
Kerstin Humm
2025-12-01 13:59:14 +01:00
parent 1123173232
commit a2ad9d8e6d
2 changed files with 19 additions and 7 deletions

View File

@@ -18,6 +18,11 @@ in
]
"MathJax rendering might be discontinued in the future, use services.gollum.math instead to enable KaTeX rendering or file a PR if you really need Mathjax"
)
(lib.mkRemovedOptionModule [
"services"
"gollum"
"local-time"
] "Set the value in services.gollum.extraConfig")
];
options.services.gollum = {
@@ -38,6 +43,13 @@ in
extraConfig = lib.mkOption {
type = lib.types.lines;
default = "";
example = ''
wiki_options = {
show_local_time: true
}
Precious::App.set(:wiki_options, wiki_options)
'';
description = "Content of the configuration file";
};
@@ -87,12 +99,6 @@ in
description = "Disable editing pages";
};
local-time = lib.mkOption {
type = lib.types.bool;
default = false;
description = "Use the browser's local timezone instead of the server's for displaying dates.";
};
branch = lib.mkOption {
type = lib.types.str;
default = "master";
@@ -159,7 +165,6 @@ in
${lib.optionalString cfg.emoji "--emoji"} \
${lib.optionalString cfg.h1-title "--h1-title"} \
${lib.optionalString cfg.no-edit "--no-edit"} \
${lib.optionalString cfg.local-time "--local-time"} \
${lib.optionalString (cfg.allowUploads != null) "--allow-uploads ${cfg.allowUploads}"} \
${lib.optionalString (cfg.user-icons != null) "--user-icons ${cfg.user-icons}"} \
${cfg.stateDir}

View File

@@ -7,6 +7,13 @@
{ pkgs, lib, ... }:
{
services.gollum.enable = true;
services.gollum.extraConfig = ''
wiki_options = {
show_local_time: true
}
Precious::App.set(:wiki_options, wiki_options)
'';
};
};