From 0f4f6a63392cd3bac8caf3e0b735a9e2383aeb20 Mon Sep 17 00:00:00 2001 From: yukkop Date: Sat, 14 Feb 2026 15:59:13 +0000 Subject: [PATCH] hz --- nixos/module/generic/postgresql.nix | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/nixos/module/generic/postgresql.nix b/nixos/module/generic/postgresql.nix index c7de880..2f2b482 100644 --- a/nixos/module/generic/postgresql.nix +++ b/nixos/module/generic/postgresql.nix @@ -66,32 +66,32 @@ in { wantedBy = [ "multi-user.target" ]; }; systemd.services.postgresql.environment = cfg.environment; - services.postgresql = { - settings.shared_preload_libraries = - lib.concatStringsSep ", " - (lib.attrNames ( - lib.filterAttrs (n: v: v && - n != "http" - && n != "plsh" - && n != "pgjwt" - && n != "pg_smtp_client" - ) cfg.lazzyExtensions)); + #services.postgresql = { + # settings.shared_preload_libraries = + # lib.concatStringsSep ", " + # (lib.attrNames ( + # lib.filterAttrs (n: v: v && + # n != "http" + # && n != "plsh" + # && n != "pgjwt" + # && n != "pg_smtp_client" + # ) cfg.lazzyExtensions)); - extensions = let - packages = { - inherit (cfg.package.pkgs) pg_net pgjwt pg_cron http pg_smtp_client plsh; - }; - in - lib.attrValues ( - lib.filterAttrs (n: v: v != null) - (lib.mapAttrs' ( - name: enabled: - if enabled - then lib.nameValuePair name (packages.${name} or (throw "Package ${name} not found in pkgs")) - else null - ) - cfg.lazzyExtensions) - ); - }; + # extensions = let + # packages = { + # inherit (cfg.package.pkgs) pg_net pgjwt pg_cron http pg_smtp_client plsh; + # }; + # in + # lib.attrValues ( + # lib.filterAttrs (n: v: v != null) + # (lib.mapAttrs' ( + # name: enabled: + # if enabled + # then lib.nameValuePair name (packages.${name} or (throw "Package ${name} not found in pkgs")) + # else null + # ) + # cfg.lazzyExtensions) + # ); + #}; }; }