Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Match nixpkgs support for services.postgresql.extensions #1309

Open
dbaynard opened this issue Jan 28, 2025 · 0 comments
Open

Match nixpkgs support for services.postgresql.extensions #1309

dbaynard opened this issue Jan 28, 2025 · 0 comments

Comments

@dbaynard
Copy link
Contributor

In nixpkgs, services.postgresql.extraPlugins has been deprecated. I believe that means this module should support the new attr, although I don't know how to handle the deprecation.

https://github.com/NixOS/nixpkgs/blob/ac24885fb5e9b15729a5fa78f14cfe159e5a86ec/nixos/modules/services/databases/postgresql.nix#L96-L99

    (mkRenamedOptionModule
      [ "services" "postgresql" "extraPlugins" ]
      [ "services" "postgresql" "extensions" ]
    )

Change is needed here, I think?

postgresql =
if cfg.extraPlugins == []
then cfg.package
else cfg.package.withPackages (_: cfg.extraPlugins);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant