update docker configs, upgrade postgres

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
2024-11-02 23:59:38 -04:00
parent 8de5a168ba
commit 9d8164f28d
12 changed files with 116 additions and 74 deletions

View File

@ -16,6 +16,7 @@
./minio.nix
./networking.nix
./nextcloud.nix
./postgresql.nix
./zfs.nix
];
@ -68,31 +69,6 @@
smartd.enable = true;
calibre-server.enable = true;
postgresql = {
enable = true;
enableJIT = true;
identMap = ''
# ArbitraryMapName systemUser DBUser
superuser_map root postgres
superuser_map alice postgres
# Let other names login as themselves
superuser_map /^(.*)$ \1
'';
# initialScript = config.sops.secrets."postgres/init".path;
upgrade = {
enable = true;
stopServices = [
"hydra-evaluator"
"hydra-init"
"hydra-notify"
"hydra-queue-runner"
"hydra-send-stats"
"hydra-server"
];
};
};
};
nix.gc.options = "--delete-older-than 150d";