summaryrefslogtreecommitdiff
path: root/hosts/surtr
diff options
context:
space:
mode:
Diffstat (limited to 'hosts/surtr')
-rw-r--r--hosts/surtr/postgresql/default.nix8
1 files changed, 7 insertions, 1 deletions
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
3 versioning = sources.psql-versioning.src; 3 versioning = sources.psql-versioning.src;
4in { 4in {
5 config = { 5 config = {
6 assertions = [
7 (let
8 inherit (config.services.pgbackrest.package) version;
9 in { assertion = version == "2.45"; message = "Presumably incompatible pgBackRest version: ${version}"; })
10 ];
11
6 services.postgresql = { 12 services.postgresql = {
7 enable = true; 13 enable = true;
8 package = pkgs.postgresql_14; 14 package = pkgs.postgresql_14;
@@ -10,7 +16,7 @@ in {
10 16
11 services.pgbackrest = { 17 services.pgbackrest = {
12 enable = true; 18 enable = true;
13 package = flakeInputs.nixpkgs-stable.legacyPackages.${config.nixpkgs.system}.pgbackrest; 19 package = flakeInputs.nixpkgs-pgbackrest.legacyPackages.${config.nixpkgs.system}.pgbackrest;
14 20
15 settings = { 21 settings = {
16 "surtr" = { 22 "surtr" = {