treewide: fix services.postgresql.extraPlugins usage

This commit is contained in:
Sandro Jäckel 2023-09-26 22:49:44 +02:00
parent 4fe5824fc7
commit 3bb72ed9fd
No known key found for this signature in database
GPG Key ID: 3AF5A43A3EECC2E5
6 changed files with 8 additions and 8 deletions

View File

@ -384,7 +384,7 @@ in
ensureDBOwnership = false;
}
];
extraPlugins = with postgresql.pkgs; [ postgis ];
extraPlugins = ps: with ps; [ postgis ];
};
# Nginx config taken from support/nginx/mobilizon-release.conf

View File

@ -11,7 +11,7 @@ with pkgs; {
{
services.postgresql = {
enable = true;
extraPlugins = [ pgjwt pgtap ];
extraPlugins = ps: with ps; [ pgjwt pgtap ];
};
};
};

View File

@ -9,10 +9,10 @@ import ./make-test-python.nix ({ pkgs, ...} : {
{ pkgs, ... }:
{
services.postgresql = let mypg = pkgs.postgresql; in {
services.postgresql = {
enable = true;
package = mypg;
extraPlugins = with mypg.pkgs; [
package = pkgs.postgresql;
extraPlugins = ps: with ps; [
postgis
];
};

View File

@ -27,7 +27,7 @@ let
services.postgresql = {
enable = true;
package = postgresql-package;
extraPlugins = with postgresql-package.pkgs; [
extraPlugins = ps: with ps; [
timescaledb
promscale_extension
];

View File

@ -52,7 +52,7 @@ let
services.postgresql = {
enable = true;
package = postgresql-package;
extraPlugins = with postgresql-package.pkgs; [
extraPlugins = ps: with ps; [
timescaledb
timescaledb_toolkit
];

View File

@ -11,7 +11,7 @@ import ./make-test-python.nix ({ pkgs, lib, ...} : {
{
services.postgresql = {
enable = true;
extraPlugins = with config.services.postgresql.package.pkgs; [
extraPlugins = ps: with ps; [
tsja
];
};