nextcloud: Use the system postgres version

This commit is contained in:
Tristan Daniël Maat 2024-07-03 01:28:23 +02:00
parent 21b9112f76
commit 306b69f6b5
Signed by: tlater
GPG key ID: 49670FD774E43268

View file

@ -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;