format tree

This commit is contained in:
zowoq 2024-07-24 19:05:26 +10:00 committed by Jörg Thalheim
parent 24547fcd6c
commit 92c55595d0
43 changed files with 476 additions and 357 deletions
hosts/build03

View file

@ -1,9 +1,7 @@
{ pkgs, ... }:
{
services.postgresql.ensureUsers = [{
name = "telegraf";
}];
services.postgresql.ensureUsers = [ { name = "telegraf"; } ];
systemd.services.postgresql.postStart = ''
$PSQL -tAc 'GRANT pg_read_all_stats TO telegraf' -d postgres
@ -53,7 +51,6 @@
max_wal_size = "2 GB";
min_wal_size = "1 GB";
# WAL writing
wal_compression = "on";
wal_buffers = -1; # auto-tuned by Postgres till maximum of segment size (16MB by default)