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";