Pin the postgresql package
This commit is contained in:
parent
513ac03055
commit
331c577d3f
|
@ -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";
|
||||
|
|
|
@ -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 \
|
||||
|
|
Loading…
Reference in New Issue