15 lines
317 B
Nix
15 lines
317 B
Nix
{ config, lib, ... }:
|
|
with lib;
|
|
let
|
|
moduleCfg = config.selfhosted.seafile;
|
|
in
|
|
{
|
|
config = mkIf moduleCfg.enable {
|
|
sops.templates."seafile-db.env".content = ''
|
|
MYSQL_ROOT_PASSWORD=${config.sops.placeholder."seafile/mysql_password"}
|
|
MYSQL_LOG_CONSOLE=true
|
|
MARIADB_AUTO_UPGRADE=1
|
|
'';
|
|
};
|
|
}
|