0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-13 13:40:28 +03:00

nixos/libeufin: fix postgresql.package regression

`config.services.postgresql.package` is now only available when the
PostgreSQL module is actually enabled. If we're not using the local
database, we'll need to fallback to the latest postgresql version, since
we don't know about the remote version.
This commit is contained in:
Wolfgang Walther 2025-06-20 21:39:05 +02:00
parent 4fab5e9fe9
commit da3beb2a08
No known key found for this signature in database
GPG key ID: B39893FA5F65CAE1

View file

@ -96,7 +96,9 @@ libeufinComponent:
};
in
{
path = [ config.services.postgresql.package ];
path = [
(if cfg.createLocalDatabase then config.services.postgresql.package else pkgs.postgresql)
];
serviceConfig = {
Type = "oneshot";
DynamicUser = true;