config-perso/machines/kat-son/zulip/postgres.nix

28 lines
623 B
Nix
Raw Normal View History

2024-07-05 18:09:54 +02:00
{ ... }:
{
# postgresql_common.pp
users.users.postgres.extraGroups = [ "zulip" ];
# process_fts_updates.pp
systemd.services.process-fts-updates = {
script = ''''; # TODO : puppet/zulip/files/postgresql/process_fts_updates
serviceConfig = {
User = "zulip";
Group = "zulip";
};
};
# postgresql_base.pp
services.nagios.plugins = [
# TODO : puppet/zulip/files/nagios_plugins/zulip_postgresql
];
services.postgresql = {
enable = true;
ensureUsers = [
{
name = "zulip";
ensureDBOwnership = true;
}
];
ensureDatabases = [ "zulip" ];
};
}