nixos/maubot: fix eval with default config

This commit is contained in:
chayleaf 2023-12-08 17:35:11 +07:00
parent 35008cf03d
commit 57e3ca7057
No known key found for this signature in database
GPG key ID: 78171AD46227E68E
2 changed files with 2 additions and 2 deletions

View file

@ -42,7 +42,7 @@ let
database = lib.last (lib.splitString "/" noSchema);
};
postgresDBs = [
postgresDBs = builtins.filter isPostgresql [
cfg.settings.database
cfg.settings.crypto_database
cfg.settings.plugin_databases.postgres

View file

@ -39,7 +39,7 @@ let wrapper = { pythonPackages ? (_: [ ]), plugins ? (_: [ ]), baseConfig ? null
if builtins.isNull (baseConfig.server.override_resource_path or null)
then "${unwrapped}/${python3.sitePackages}/maubot/management/frontend/build"
else baseConfig.server.override_resource_path;
})})} $out/${python3.sitePackages}/maubot/example-config.yaml
})} $out/${python3.sitePackages}/maubot/example-config.yaml
rm -rf $out/bin
''}
mkdir -p $out/bin