mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +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:
parent
4fab5e9fe9
commit
da3beb2a08
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue