22
0
mirror of https://github.com/SuperSandro2000/nixos-modules.git synced 2024-05-29 12:30:48 +02:00

postgres: fix postgres jit detection

This commit is contained in:
Sandro - 2024-03-19 23:13:37 +01:00
parent 342b9846c0
commit f73f6d44dd
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5

View File

@ -42,7 +42,7 @@ in
newData = "/var/lib/postgresql/${cfgu.newPackage.psqlSchema}";
newBin = "${if cfg.extraPlugins == [] then cfgu.newPackage else cfgu.newPackage.withPackages cfg.extraPlugins}/bin";
oldPackage = if cfg.enableJIT && !cfg.package.jitSupport then cfg.package.withJIT else cfg.package;
oldPackage = if cfg.enableJIT then cfg.package.withJIT else cfg.package;
oldData = config.services.postgresql.dataDir;
oldBin = "${if cfg.extraPlugins == [] then oldPackage else oldPackage.withPackages cfg.extraPlugins}/bin";
in