Files
nixos/hosts/common/optional/selfhosted/seafile/seadoc/config.nix
T
2026-10-01 13:59:54 +03:00

21 lines
537 B
Nix

{ config, lib, ... }:
with lib;
let
rootCfg = config.selfhosted.seafile;
in
{
config = mkIf rootCfg.enable {
sops.templates."seadoc.env".content = ''
DB_HOST=${rootCfg.mariadb.name}
DB_PORT=3306
DB_USER=seafile
DB_PASSWORD=${config.sops.placeholder."seafile/mysql_password"}
DB_NAME=seahub_db
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}
'';
};
}