gitea: Updated to using "settings".

This commit is contained in:
Craige McWhirter 2021-01-21 11:35:44 +10:00
parent fda7b391be
commit d9a19bbbd5
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA

View file

@ -14,24 +14,27 @@
domain = "source.mcwhirter.io"; # Domain name
rootUrl = "https://source.mcwhirter.io/"; # Root web URL
httpPort = 3002; # Provided unique port
extraConfig = let
settings = let
docutils =
pkgs.python37.withPackages (ps: with ps; [
docutils # Provides rendering of ReStructured Text files
pygments # Provides syntax highlighting
]);
in ''
[mailer]
ENABLED = true
FROM = "gitea@mcwhirter.io"
[service]
REGISTER_EMAIL_CONFIRM = true
[markup.restructuredtext]
ENABLED = true
FILE_EXTENSIONS = .rst
RENDER_COMMAND = ${docutils}/bin/rst2html.py
IS_INPUT_FILE = false
'';
in {
mailer = {
ENABLED = true;
FROM = "gitea@mcwhirter.io";
};
service = {
REGISTER_EMAIL_CONFIRM = true;
};
"markup.restructuredtext" = {
ENABLED = true;
FILE_EXTENSIONS = ".rst";
RENDER_COMMAND = "${docutils}/bin/rst2html.py";
IS_INPUT_FILE = false;
};
};
};
services.postgresql = {