config-perso/machines/kat-son/zulip/postgres.nix
2024-09-23 17:33:15 +02:00

27 lines
623 B
Nix

{ ... }:
{
# 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" ];
};
}