Skip to content

Commit

Permalink
postgres: fix new package jit
Browse files Browse the repository at this point in the history
  • Loading branch information
SuperSandro2000 committed Apr 14, 2024
1 parent f1d7450 commit 4ea537a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion modules/postgres.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4ea537a

Please sign in to comment.