gitea → forgejo

This commit is contained in:
stuebinm 2024-01-28 16:07:18 +01:00
parent 062e123046
commit c681bb413c

View file

@ -15,13 +15,12 @@
path = evalConfig ({ config, lib, pkgs, ... }: { path = evalConfig ({ config, lib, pkgs, ... }: {
system.stateVersion = "21.11"; system.stateVersion = "21.11";
environment.systemPackages = [ pkgs.gitea ]; environment.systemPackages = [ pkgs.forgejo ];
hexchen.bindmounts."/var/lib/gitea" = "/persist/gitea"; hexchen.bindmounts."/var/lib/forgejo" = "/persist/forgejo";
services.gitea = { services.forgejo = {
enable = true; enable = true;
appName = "0x0: git for all creatures";
lfs.enable = true; lfs.enable = true;
database.type = "postgres"; database.type = "postgres";
settings = { settings = {
@ -65,13 +64,14 @@
log.LEVEL = "Info"; log.LEVEL = "Info";
service.DISABLE_REGISTRATION = true; service.DISABLE_REGISTRATION = true;
session.COOKIE_SECURE = true; session.COOKIE_SECURE = true;
default.APP_NAME = "0x0: git for all creatures";
}; };
}; };
services.postgresql.package = pkgs.postgresql_15; services.postgresql.package = pkgs.postgresql_15;
services.postgresqlBackup = { services.postgresqlBackup = {
enable = true; enable = true;
databases = [ "gitea" ]; databases = [ "forgejo" ];
startAt = "*-*-* 23:45:00"; startAt = "*-*-* 23:45:00";
location = "/persist/backups/postgres"; location = "/persist/backups/postgres";
}; };