summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGregor Kleen <gkleen@yggdrasil.li>2023-12-29 20:32:20 +0100
committerGregor Kleen <gkleen@yggdrasil.li>2023-12-29 20:32:20 +0100
commit6034a98204e4d0a975ea52a9ce3d78a3f5b84f70 (patch)
treeb44d088067e8d11ee1ff8105a57489b4d99eca0a
parentd5a1825f066d66c96aceec3785408881a18ca78b (diff)
downloadnixos-6034a98204e4d0a975ea52a9ce3d78a3f5b84f70.tar
nixos-6034a98204e4d0a975ea52a9ce3d78a3f5b84f70.tar.gz
nixos-6034a98204e4d0a975ea52a9ce3d78a3f5b84f70.tar.bz2
nixos-6034a98204e4d0a975ea52a9ce3d78a3f5b84f70.tar.xz
nixos-6034a98204e4d0a975ea52a9ce3d78a3f5b84f70.zip
...
-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" = {