nextcloud: Use the system postgres version #118

Manually merged
tlater merged 1 commit from tlater/postgres-duplicate into master 2024-07-03 01:47:28 +01:00

View file

@ -1,5 +1,6 @@
{ pkgs { pkgs
, config , config
, lib
, ... , ...
}: }:
let let
@ -14,6 +15,19 @@ in
inherit hostName; inherit hostName;
package = nextcloud; 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; enable = true;
maxUploadSize = "2G"; maxUploadSize = "2G";
https = true; https = true;