From 670200c1225368587cc473d5d889f9ffc7bf61af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sat, 13 May 2023 07:18:17 +0100 Subject: [PATCH] make sure to use working (stable) definition of the gitea service --- nixos/boxes/vpsfree1/gitea.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/nixos/boxes/vpsfree1/gitea.nix b/nixos/boxes/vpsfree1/gitea.nix index 33375b4e..8f362b59 100644 --- a/nixos/boxes/vpsfree1/gitea.nix +++ b/nixos/boxes/vpsfree1/gitea.nix @@ -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";