0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-18 16:10:19 +03:00

nixos/postgresql: rename extraPlugins to extensions

This is the upstream lingo, and it makes everything slightly less
confusing.

(cherry picked from commit 223a6c6ed0)
This commit is contained in:
Martin Weinelt 2024-11-11 23:23:46 +01:00 committed by github-actions[bot]
parent ee202b2125
commit 7d07116532
9 changed files with 13 additions and 13 deletions

View file

@ -41,9 +41,9 @@ let
# works.
base = if cfg.enableJIT then cfg.package.withJIT else cfg.package.withoutJIT;
in
if cfg.extraPlugins == []
if cfg.extensions == []
then base
else base.withPackages cfg.extraPlugins;
else base.withPackages cfg.extensions;
toStr = value:
if true == value then "yes"
@ -60,7 +60,6 @@ let
'';
groupAccessAvailable = versionAtLeast postgresql.version "11.0";
in
{
@ -69,6 +68,7 @@ in
(mkRenamedOptionModule [ "services" "postgresql" "logLinePrefix" ] [ "services" "postgresql" "settings" "log_line_prefix" ])
(mkRenamedOptionModule [ "services" "postgresql" "port" ] [ "services" "postgresql" "settings" "port" ])
(mkRenamedOptionModule [ "services" "postgresql" "extraPlugins" ] [ "services" "postgresql" "extensions" ])
];
###### interface
@ -372,12 +372,12 @@ in
'';
};
extraPlugins = mkOption {
extensions = mkOption {
type = with types; coercedTo (listOf path) (path: _ignorePg: path) (functionTo (listOf path));
default = _: [];
example = literalExpression "ps: with ps; [ postgis pg_repack ]";
description = ''
List of PostgreSQL plugins.
List of PostgreSQL extensions to install.
'';
};