Pin the postgresql package

This commit is contained in:
Andreas Zweili 2023-11-25 10:35:28 +01:00
parent 513ac03055
commit 331c577d3f
2 changed files with 2 additions and 1 deletions

View File

@ -11,6 +11,7 @@ in
services.postgresql = {
enable = true;
enableTCPIP = true;
package = pkgs.postgresql_14;
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

@ -50,7 +50,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}/bin/pg_dumpall | \
${pkgs.sudo}/bin/sudo -u postgres ${pkgs.postgresql_14}/bin/pg_dumpall | \
${pkgs.restic}/bin/restic backup \
--tag postgres \
--stdin \