about summary refs log tree commit diff
path: root/modules
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-01-07 13:32:03 -0800
committerFranck Cuny <franck@fcuny.net>2023-01-07 13:32:03 -0800
commit678386173563a30bcddd6bba611e093f82539415 (patch)
tree7393cd36229eac14f910e63b0b935d01696acff6 /modules
parentfeat(home/packages): add tool masked-emails (diff)
downloadworld-678386173563a30bcddd6bba611e093f82539415.tar.gz
fix(modules/gitea): a number of options have been renamed
Diffstat (limited to 'modules')
-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 ]; };
   };
 }
+};
+}
+};
+}
+};
+}
+};
+}
+};
+}
+};
+}
+};
+}