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