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;