27 lines
623 B
Nix
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" ];
|
|
};
|
|
}
|