diff options
author | Gregor Kleen <gkleen@yggdrasil.li> | 2023-12-29 22:40:38 +0100 |
---|---|---|
committer | Gregor Kleen <gkleen@yggdrasil.li> | 2023-12-29 22:40:38 +0100 |
commit | ae67327df3faaf106d2bcb352d4151774576bf00 (patch) | |
tree | 9675d97cef9bc880e771d6304da44e892fc7f444 /hosts/surtr/postgresql | |
parent | d4b30420812cd0b5ec97d6048e32903198b96f38 (diff) | |
download | nixos-ae67327df3faaf106d2bcb352d4151774576bf00.tar nixos-ae67327df3faaf106d2bcb352d4151774576bf00.tar.gz nixos-ae67327df3faaf106d2bcb352d4151774576bf00.tar.bz2 nixos-ae67327df3faaf106d2bcb352d4151774576bf00.tar.xz nixos-ae67327df3faaf106d2bcb352d4151774576bf00.zip |
...
Diffstat (limited to 'hosts/surtr/postgresql')
-rw-r--r-- | hosts/surtr/postgresql/default.nix | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/hosts/surtr/postgresql/default.nix b/hosts/surtr/postgresql/default.nix index faf74588..f0e42ee8 100644 --- a/hosts/surtr/postgresql/default.nix +++ b/hosts/surtr/postgresql/default.nix | |||
@@ -1,6 +1,11 @@ | |||
1 | { pkgs, sources, config, flake, flakeInputs, ... }: | 1 | { pkgs, sources, config, flake, flakeInputs, ... }: |
2 | let | 2 | let |
3 | versioning = sources.psql-versioning.src; | 3 | versioning = sources.psql-versioning.src; |
4 | |||
5 | nixpkgs-pgbackrest = import (flakeInputs.nixpkgs-pgbackrest.outPath + "/pkgs/top-level") { | ||
6 | overlays = [ flake.overlays.libdscp ]; | ||
7 | localSystem = config.nixpkgs.system; | ||
8 | }; | ||
4 | in { | 9 | in { |
5 | config = { | 10 | config = { |
6 | assertions = [ | 11 | assertions = [ |
@@ -16,7 +21,8 @@ in { | |||
16 | 21 | ||
17 | services.pgbackrest = { | 22 | services.pgbackrest = { |
18 | enable = true; | 23 | enable = true; |
19 | package = flakeInputs.nixpkgs-pgbackrest.legacyPackages.${config.nixpkgs.system}.pgbackrest; | 24 | package = nixpkgs-pgbackrest.pgbackrest; |
25 | dscpPackage = nixpkgs-pgbackrest.libdscp; | ||
20 | 26 | ||
21 | settings = { | 27 | settings = { |
22 | "surtr" = { | 28 | "surtr" = { |