From 765871000fb3bc06397eb4daafc4b9e2ef84c9cc Mon Sep 17 00:00:00 2001 From: KoenDR06 Date: Mon, 23 Mar 2026 17:28:11 +0100 Subject: [PATCH] forgejo users can't create repos anymore --- modules/containers/forgejo.nix | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/modules/containers/forgejo.nix b/modules/containers/forgejo.nix index 41da5bd..bc0aa46 100644 --- a/modules/containers/forgejo.nix +++ b/modules/containers/forgejo.nix @@ -158,6 +158,16 @@ in { service = { DISABLE_REGISTRATION = true; }; + + # Prevent users from creating repositories and orginizations + repository = { + MAX_CREATION_LIMIT = 0; + DISABLE_MIGRATION = true; + }; + admin = { + DISABLE_REGULAR_ORG_CREATION = true; + }; + }; };