Skip to content

Commit

Permalink
nixos/postgresql: fix enableJIT = false
Browse files Browse the repository at this point in the history
The enableJIT = true case was fixed in #221851 or
e2fb651 respectively.

However this did not take the case into consideration, when doing this:

    services.postgresql = {
      enable = true;
      enableJIT = false;
      package = pkgs.postgresql_15_jit;
    };

If enableJIT is treated as the source of truth, then this should indeed
cause JIT to be disabled, which this commit does.
  • Loading branch information
wolfgangwalther committed Apr 4, 2024
1 parent c601756 commit 1682b4c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nixos/modules/services/databases/postgresql.nix
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let
# package = pkgs.postgresql_<major>;
# };
# works.
base = if cfg.enableJIT then cfg.package.withJIT else cfg.package;
base = if cfg.enableJIT then cfg.package.withJIT else cfg.package.withoutJIT;
in
if cfg.extraPlugins == []
then base
Expand Down

0 comments on commit 1682b4c

Please sign in to comment.