22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-06-01 05:49:22 +02:00

postgres: include plugins in new package

This commit is contained in:
Sandro - 2023-01-07 05:29:10 +01:00
parent efeb1e2973
commit 675d14e765
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 = "${cfgu.newPackage}/bin";
newBin = "${if cfg.extraPlugins == [] then cfgu.newPackage else cfgu.newPackage.withPackages (_: with cfgu.newPackage.pkgs; cfg.extraPlugins)}/bin";
oldData = config.services.postgresql.dataDir;
oldBin = "${config.services.postgresql.package}/bin";
currPkg = cfg.package;