This commit is contained in:
parent
dbdb2036bf
commit
f16b30710a
2 changed files with 21 additions and 5 deletions
|
@ -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";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue