Refactor deprecated gitea options

This commit is contained in:
coolneng 2022-08-15 21:30:37 +02:00
parent 037e1ce951
commit ae413bd36c
Signed by: coolneng
GPG Key ID: 9893DA236405AF57
1 changed files with 6 additions and 4 deletions

View File

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