mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2025-01-05 02:23:07 +03:00
nixos/nextcloud: use php8 where possible
This commit is contained in:
parent
82155ff501
commit
66edc1e846
@ -6,7 +6,7 @@ let
|
|||||||
cfg = config.services.nextcloud;
|
cfg = config.services.nextcloud;
|
||||||
fpm = config.services.phpfpm.pools.nextcloud;
|
fpm = config.services.phpfpm.pools.nextcloud;
|
||||||
|
|
||||||
phpPackage = pkgs.php74.buildEnv {
|
phpPackage = cfg.phpPackage.buildEnv {
|
||||||
extensions = { enabled, all }:
|
extensions = { enabled, all }:
|
||||||
(with all;
|
(with all;
|
||||||
enabled
|
enabled
|
||||||
@ -94,6 +94,14 @@ in {
|
|||||||
description = "Which package to use for the Nextcloud instance.";
|
description = "Which package to use for the Nextcloud instance.";
|
||||||
relatedPackages = [ "nextcloud20" "nextcloud21" "nextcloud22" ];
|
relatedPackages = [ "nextcloud20" "nextcloud21" "nextcloud22" ];
|
||||||
};
|
};
|
||||||
|
phpPackage = mkOption {
|
||||||
|
type = types.package;
|
||||||
|
relatedPackages = [ "php74" "php80" ];
|
||||||
|
defaultText = "pkgs.php";
|
||||||
|
description = ''
|
||||||
|
PHP package to use for Nextcloud.
|
||||||
|
'';
|
||||||
|
};
|
||||||
|
|
||||||
maxUploadSize = mkOption {
|
maxUploadSize = mkOption {
|
||||||
default = "512M";
|
default = "512M";
|
||||||
@ -423,6 +431,10 @@ in {
|
|||||||
else if versionOlder stateVersion "21.11" then nextcloud21
|
else if versionOlder stateVersion "21.11" then nextcloud21
|
||||||
else nextcloud22
|
else nextcloud22
|
||||||
);
|
);
|
||||||
|
|
||||||
|
services.nextcloud.phpPackage =
|
||||||
|
if versionOlder cfg.package.version "21" then pkgs.php74
|
||||||
|
else pkgs.php80;
|
||||||
}
|
}
|
||||||
|
|
||||||
{ systemd.timers.nextcloud-cron = {
|
{ systemd.timers.nextcloud-cron = {
|
||||||
|
Loading…
Reference in New Issue
Block a user