22
0
mirror of https://github.com/NuschtOS/nixos-modules.git synced 2024-07-01 08:38:44 +02:00

postgres: deadnix

This commit is contained in:
Sandro - 2023-06-28 13:40:35 +02:00
parent 1b578f8875
commit 5a0560f0e3
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -36,7 +36,7 @@ in
environment.systemPackages = lib.optional cfgu.enable (
let
newData = "/var/lib/postgresql/${cfgu.newPackage.psqlSchema}";
newBin = "${if cfg.extraPlugins == [] then cfgu.newPackage else cfgu.newPackage.withPackages (_: with cfgu.newPackage.pkgs; cfg.extraPlugins)}/bin";
newBin = "${if cfg.extraPlugins == [] then cfgu.newPackage else cfgu.newPackage.withPackages (_: cfg.extraPlugins)}/bin";
oldData = config.services.postgresql.dataDir;
oldBin = "${config.services.postgresql.package}/bin";
currPkg = cfg.package;