Small modules config restructure

Changed variables names in every module
This commit is contained in:
aloslider committed 2026-10-31 19:48:50 +03:00
1 parent c1d2e52bf8
commit c92b90e406
83 files changed
+616 -523

No files matched your search

@@ -1,20 +1,21 @@
{ config, lib, ... }:
with lib;
let
common = config.selfhosted.common;
rootCfg = config.selfhosted.gitea;
cfg = rootCfg.server;
rootCfg = config.selfhosted;
common = rootCfg.common;
moduleCfg = rootCfg.gitea;
cfg = moduleCfg.server;
domain = "${config.sops.placeholder."domains/serv"}";
giteaDomain = "${cfg.subdomain}.${domain}";
in
{
config = mkIf rootCfg.enable {
config = mkIf moduleCfg.enable {
sops.templates."gitea.env".content = ''
USER_UID=${common.user.uid}
USER_GID=${common.group.gid}
GITEA__database__DB_TYPE=postgres
GITEA__database__HOST=${rootCfg.postgresql.name}:5432
GITEA__database__HOST=${moduleCfg.postgresql.name}:5432
GITEA__database__NAME=gitea
GITEA__database__USER=gitea
GITEA__database__PASSWD=${config.sops.placeholder."gitea/db_password"}