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; + }; + }; };