aboutsummaryrefslogtreecommitdiff
path: root/modules/git/default.nix
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--modules/git/default.nix23
1 files changed, 18 insertions, 5 deletions
diff --git a/modules/git/default.nix b/modules/git/default.nix
index 08b2672..d5cae6a 100644
--- a/modules/git/default.nix
+++ b/modules/git/default.nix
@@ -15,11 +15,24 @@
createDatabase = true;
};
- settings.server = {
- DOMAIN = "git.vapor.systems";
- ROOT_URL = "https://git.vapor.systems";
- PROTOCOL = "http+unix";
- HTTP_ADDR = "/run/gitea/http.sock";
+ settings = {
+ server = {
+ DOMAIN = "git.vapor.systems";
+ ROOT_URL = "https://git.vapor.systems";
+ PROTOCOL = "http+unix";
+ HTTP_ADDR = "/run/gitea/http.sock";
+ };
+
+ oauth2_client = {
+ REGISTER_EMAIL_CONFIRM = false;
+ OPENID_CONNECT_SCOPES = "email profile";
+ ENABLE_AUTO_REGISTRATION = true;
+ ACCOUNT_LINKING = "auto";
+ };
+
+ service = {
+ DISABLE_REGISTRATION = true;
+ };
};
};