aboutsummaryrefslogtreecommitdiff
path: root/modules/services/gitea
diff options
context:
space:
mode:
Diffstat (limited to 'modules/services/gitea')
-rw-r--r--modules/services/gitea/default.nix43
1 files changed, 35 insertions, 8 deletions
diff --git a/modules/services/gitea/default.nix b/modules/services/gitea/default.nix
index 8ae02ae..fd91410 100644
--- a/modules/services/gitea/default.nix
+++ b/modules/services/gitea/default.nix
@@ -29,21 +29,34 @@ in
services.gitea = {
enable = true;
user = "git";
- disableRegistration = true;
domain = "git.fcuny.net";
appName = "git.fcuny.net";
rootUrl = "https://git.fcuny.net/";
httpAddress = "127.0.0.1";
httpPort = 8002;
ssh.enable = false;
- log.level = "Error";
settings = {
- service.ENABLE_USER_HEATMAP = false;
- other.SHOW_FOOTER_VERSION = false;
- metrics.ENABLED = true;
- metrics.ENABLED_ISSUE_BY_REPOSITORY = true;
- repository.ENABLE_PUSH_CREATE_USER = true;
- repository.DEFAULT_BRANCH = "main";
+ log = {
+ LEVEL = "Error";
+ };
+ service = {
+ DISABLE_REGISTRATION = true;
+ ENABLE_USER_HEATMAP = false;
+ };
+ server = {
+ DISABLE_SSH = true;
+ };
+ other = {
+ SHOW_FOOTER_VERSION = false;
+ };
+ metrics = {
+ ENABLED = true;
+ ENABLED_ISSUE_BY_REPOSITORY = true;
+ };
+ repository = {
+ ENABLE_PUSH_CREATE_USER = true;
+ DEFAULT_BRANCH = "main";
+ };
};
dump.enable = false;
database = {
@@ -73,3 +86,17 @@ in
my.services.backup = { paths = [ cfg.stateDir ]; };
};
}
+};
+}
+};
+}
+};
+}
+};
+}
+};
+}
+};
+}
+};
+}