summaryrefslogtreecommitdiff
path: root/hosts
diff options
context:
space:
mode:
Diffstat (limited to 'hosts')
-rw-r--r--hosts/surtr/postgresql/default.nix8
-rw-r--r--hosts/vidhar/pgbackrest/default.nix8
2 files changed, 14 insertions, 2 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, ... }:
2let 2let
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 };
4in { 9in {
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" = {
diff --git a/hosts/vidhar/pgbackrest/default.nix b/hosts/vidhar/pgbackrest/default.nix
index fec0c1fb..ffb149f5 100644
--- a/hosts/vidhar/pgbackrest/default.nix
+++ b/hosts/vidhar/pgbackrest/default.nix
@@ -2,6 +2,11 @@
2 2
3let 3let
4 surtrRepoCfg = flake.nixosConfigurations."surtr".config.services.pgbackrest.settings.surtr; 4 surtrRepoCfg = flake.nixosConfigurations."surtr".config.services.pgbackrest.settings.surtr;
5
6 nixpkgs-pgbackrest = import (flakeInputs.nixpkgs-pgbackrest.outPath + "/pkgs/top-level") {
7 overlays = [ flake.overlays.libdscp ];
8 localSystem = config.nixpkgs.system;
9 };
5in { 10in {
6 config = { 11 config = {
7 assertions = [ 12 assertions = [
@@ -12,7 +17,8 @@ in {
12 17
13 services.pgbackrest = { 18 services.pgbackrest = {
14 enable = true; 19 enable = true;
15 package = flakeInputs.nixpkgs-pgbackrest.legacyPackages.${config.nixpkgs.system}.pgbackrest; 20 package = nixpkgs-pgbackrest.pgbackrest;
21 dscpPackage = nixpkgs-pgbackrest.libdscp;
16 22
17 tlsServer = { 23 tlsServer = {
18 enable = true; 24 enable = true;