nixos/postgresql: take extraPlugins packageset from package option

This allows to reuse the extraPlugins option in other context's for
example an upgrade script.
This commit is contained in:
Sandro Jäckel 2023-09-26 22:47:10 +02:00
parent d08d9057e4
commit 4fe5824fc7
No known key found for this signature in database
GPG key ID: 3AF5A43A3EECC2E5
2 changed files with 6 additions and 7 deletions

View file

@ -258,7 +258,7 @@ postgresql_15.pkgs.pg_partman postgresql_15.pkgs.pgroonga
To add plugins via NixOS configuration, set `services.postgresql.extraPlugins`:
```
services.postgresql.package = pkgs.postgresql_12;
services.postgresql.extraPlugins = with pkgs.postgresql_12.pkgs; [
services.postgresql.extraPlugins = ps: with ps; [
pg_repack
postgis
];