From 306b69f6b543e785f929919a83c8169e281f25c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Wed, 3 Jul 2024 01:28:23 +0200 Subject: [PATCH] nextcloud: Use the system postgres version --- configuration/services/nextcloud.nix | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/configuration/services/nextcloud.nix b/configuration/services/nextcloud.nix index 0d22e6c..30adf6e 100644 --- a/configuration/services/nextcloud.nix +++ b/configuration/services/nextcloud.nix @@ -1,5 +1,6 @@ { pkgs , config +, lib , ... }: let @@ -14,6 +15,19 @@ in inherit hostName; package = nextcloud; + phpPackage = lib.mkForce + (pkgs.php.override { + packageOverrides = final: prev: { + extensions = prev.extensions // { + pgsql = prev.extensions.pgsql.overrideAttrs (old: { + configureFlags = [ "--with-pgsql=${config.services.postgresql.package}" ]; + }); + pdo_pgsql = prev.extensions.pdo_pgsql.overrideAttrs (old: { + configureFlags = [ "--with-pdo-pgsql=${config.services.postgresql.package}" ]; + }); + }; + }; + }); enable = true; maxUploadSize = "2G"; https = true; -- 2.44.1