summaryrefslogtreecommitdiffstats
path: root/nixos/modules/services/databases
diff options
context:
space:
mode:
authorWolfgang Walther <walther@technowledgy.de>2024-03-10 18:16:41 +0100
committerWolfgang Walther <walther@technowledgy.de>2024-04-04 08:41:19 +0200
commit1682b4cc393dffbadedf8b869a3942965b056743 (patch)
tree54ff8341a19fe6db48d7bc24df4daa931fcd1a0f /nixos/modules/services/databases
parentc6017567e02b632a25c4b4c9e8aa46c36f67d009 (diff)
nixos/postgresql: fix enableJIT = false
The enableJIT = true case was fixed in #221851 or e2fb65175228a992f196f3b1700a53e18602e7f6 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.
Diffstat (limited to 'nixos/modules/services/databases')
-rw-r--r--nixos/modules/services/databases/postgresql.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/databases/postgresql.nix b/nixos/modules/services/databases/postgresql.nix
index d3fd6db6aea1..3f6448ac50f8 100644
--- a/nixos/modules/services/databases/postgresql.nix
+++ b/nixos/modules/services/databases/postgresql.nix
@@ -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