make sure to use working (stable) definition of the gitea service

This commit is contained in:
Cyryl Płotnicki 2023-05-13 07:18:17 +01:00
parent a72a910f37
commit 670200c122

View file

@ -80,6 +80,9 @@ in {
mutableUsers = false;
allowNoPasswordLogin = true;
};
disabledModules = [ "services/misc/gitea.nix" ];
imports =
[ "${inputs.nixpkgs-stable}/nixos/modules/services/misc/gitea.nix" ];
services.gitea = {
inherit domain httpPort;
enable = true;
@ -87,9 +90,10 @@ in {
stateDir = path;
user = systemUserName;
mailerPasswordFile = mailgunSmtpPasswordPath;
package = inputs.nixpkgs-master.legacyPackages.${system}.forgejo;
settings = {
service.DISABLE_REGISTRATION = true;
security.INSTALL_LOCK = true;
oauth2.ENABLE = false;
"markup.mermaid" = {
ENABLED = true;
FILE_EXTENSIONS = ".md";