From f2dcdb6d5c7d6f6b6b89e97f45daf9b271d641c0 Mon Sep 17 00:00:00 2001 From: Asmir A Date: Tue, 17 Oct 2023 22:50:31 +0200 Subject: [PATCH] magpie/gitea: update configuration syntax --- magpie/configuration.nix | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/magpie/configuration.nix b/magpie/configuration.nix index 6463818..d8d067f 100644 --- a/magpie/configuration.nix +++ b/magpie/configuration.nix @@ -173,18 +173,20 @@ PROTOCOL = "sendmail"; SENDMAIL_PATH = "/run/wrappers/bin/sendmail"; }; - extraConfig = let + + settings.service = { + REGISTER_EMAIL_CONFIRM = true; + }; + + settings."markup.restructuredtext" = let docutils = pkgs.python3.withPackages (ps: with ps; [docutils pygments]); - in '' - [service] - REGISTER_EMAIL_CONFIRM = true - [markup.restructuredtext] - ENABLED = true - FILE_EXTENSIONS = .rst - RENDER_COMMAND = ${docutils}/bin/rst2html.py - IS_INPUT_FILE = false - ''; + in { + ENABLED = true; + FILE_EXTENSIONS = ".rst"; + RENDER_COMMAND = "${docutils}/bin/rst2html.py"; + IS_INPUT_FILE = false; + }; }; /*