From da3beb2a08b791e5b034aba4a83c16ff7f032c31 Mon Sep 17 00:00:00 2001 From: Wolfgang Walther Date: Fri, 20 Jun 2025 21:39:05 +0200 Subject: [PATCH] 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. --- nixos/modules/services/finance/libeufin/common.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/finance/libeufin/common.nix b/nixos/modules/services/finance/libeufin/common.nix index 4e0a6bffe02f..20b99ce9c396 100644 --- a/nixos/modules/services/finance/libeufin/common.nix +++ b/nixos/modules/services/finance/libeufin/common.nix @@ -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;