From ae413bd36cd73607d39d49386f46e03b9766583a Mon Sep 17 00:00:00 2001 From: coolneng Date: Mon, 15 Aug 2022 21:30:37 +0200 Subject: [PATCH] Refactor deprecated gitea options --- modules/devops.nix | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/modules/devops.nix b/modules/devops.nix index ebfdfc8..8af0b4a 100644 --- a/modules/devops.nix +++ b/modules/devops.nix @@ -1,5 +1,4 @@ { config, pkgs, lib, ... }: { - # Set up Gitea with LFS support services.gitea = { enable = true; @@ -9,11 +8,14 @@ type = "postgres"; passwordFile = config.age.secrets.gitea.path; }; - cookieSecure = true; - disableRegistration = true; repositoryRoot = "/vault/git"; appName = "Gitea"; lfs.enable = true; - settings.ui.DEFAULT_THEME = "arc-green"; + settings = { + ui.DEFAULT_THEME = "arc-green"; + session.COOKIE_SECURE = true; + service.DISABLE_REGISTRATION = true; + server.DISABLE_SSH = true; + }; }; }