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,12 +1,12 @@
{ config, lib, ... }:
with lib;
let
rootCfg = config.selfhosted.seafile;
moduleCfg = config.selfhosted.seafile;
in
{
config = mkIf rootCfg.enable {
config = mkIf moduleCfg.enable {
sops.templates."seadoc.env".content = ''
DB_HOST=${rootCfg.mariadb.name}
DB_HOST=${moduleCfg.mariadb.name}
DB_PORT=3306
DB_USER=seafile
DB_PASSWORD=${config.sops.placeholder."seafile/mysql_password"}
@@ -14,7 +14,7 @@ in
TIME_ZONE=${config.time.timeZone}
JWT_PRIVATE_KEY=${config.sops.placeholder."seafile/jwt_private_key"}
NON_ROOT=false
SEAHUB_SERVICE_URL=http://${rootCfg.server.name}
SEAHUB_SERVICE_URL=http://${moduleCfg.server.name}
'';
};
}