Change gitea for forgejo
Some checks are pending
/ Build Nix targets (push) Has started running

This commit is contained in:
Théo Barnouin 2025-01-29 10:21:24 +01:00
parent dbdb2036bf
commit f16b30710a
2 changed files with 21 additions and 5 deletions

View file

@ -8,7 +8,7 @@
in {
options.services.vm_forgejo = {
enable = lib.mkEnableOption "Enable minimal config";
db_ip = lib.mkOption {
pgsql_ip = lib.mkOption {
type = lib.types.str;
description = "forgejo database IP address";
};
@ -26,7 +26,7 @@ in {
database = {
createDatabase = false;
type = "postgres";
host = "${cfg.db_ip}";
host = "${cfg.pgsql_ip}";
name = "gitea";
user = "gitea";
passwordFile = "/run/secrets/forgejo/forgejo-dbpass";