From 6034a98204e4d0a975ea52a9ce3d78a3f5b84f70 Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Fri, 29 Dec 2023 20:32:20 +0100 Subject: ... --- hosts/surtr/postgresql/default.nix | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'hosts') diff --git a/hosts/surtr/postgresql/default.nix b/hosts/surtr/postgresql/default.nix index 8c373f49..faf74588 100644 --- a/hosts/surtr/postgresql/default.nix +++ b/hosts/surtr/postgresql/default.nix @@ -3,6 +3,12 @@ let versioning = sources.psql-versioning.src; in { config = { + assertions = [ + (let + inherit (config.services.pgbackrest.package) version; + in { assertion = version == "2.45"; message = "Presumably incompatible pgBackRest version: ${version}"; }) + ]; + services.postgresql = { enable = true; package = pkgs.postgresql_14; @@ -10,7 +16,7 @@ in { services.pgbackrest = { enable = true; - package = flakeInputs.nixpkgs-stable.legacyPackages.${config.nixpkgs.system}.pgbackrest; + package = flakeInputs.nixpkgs-pgbackrest.legacyPackages.${config.nixpkgs.system}.pgbackrest; settings = { "surtr" = { -- cgit v1.2.3