Update postgres version

This commit is contained in:
Andreas Zweili 2024-04-16 19:22:53 +02:00
parent dde04fafc2
commit 63d6bb90e7
2 changed files with 2 additions and 2 deletions

View File

@ -16,7 +16,7 @@ in
services.postgresql = {
enable = true;
enableTCPIP = true;
package = pkgs.postgresql_14;
package = pkgs.postgresql_15;
settings.listen_addresses = pkgs.lib.mkForce "127.0.0.1,172.17.0.1";
};
networking.firewall.extraCommands = "iptables -A INPUT -p tcp --destination-port 5432 -s 172.16.0.0/12 -j ACCEPT";

View File

@ -56,7 +56,7 @@ in
--exclude-file=${inputs.self}/modules/misc/restic-client/excludes.txt \
--tag ${cfg.tag} ${cfg.path}
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql_14}/bin/pg_dumpall | \
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql_15}/bin/pg_dumpall | \
${pkgs.restic}/bin/restic backup \
--tag postgres \
--stdin \