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

postgres: fix new package jit

This commit is contained in:
Sandro - 2024-04-15 00:24:26 +02:00
parent f1d7450195
commit 4ea537af4d
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -39,8 +39,9 @@ in
environment.systemPackages = lib.optional cfgu.enable (
let
# conditions copied from nixos/modules/services/databases/postgresql.nix
newPackage = if cfg.enableJIT then cfgu.newPackage.withJIT else cfgu.newPackage;
newData = "/var/lib/postgresql/${cfgu.newPackage.psqlSchema}";
newBin = "${if cfg.extraPlugins == [] then cfgu.newPackage else cfgu.newPackage.withPackages cfg.extraPlugins}/bin";
newBin = "${if cfg.extraPlugins == [] then newPackage else newPackage.withPackages cfg.extraPlugins}/bin";
oldPackage = if cfg.enableJIT then cfg.package.withJIT else cfg.package;
oldData = config.services.postgresql.dataDir;