nixos/nextcloud: use PHP 8 avoiding broken 2FA app

This commit is contained in:
Antoine Martin 2022-05-23 18:39:39 +02:00
parent d9c647d7d8
commit f3f0b60006

View file

@ -633,8 +633,13 @@ in {
services.nextcloud.phpPackage = services.nextcloud.phpPackage =
if versionOlder cfg.package.version "21" then pkgs.php74 if versionOlder cfg.package.version "21" then pkgs.php74
else if versionOlder cfg.package.version "24" then pkgs.php80 # FIXME: Use PHP 8.1 with Nextcloud 24 and higher, once issues like this one are fixed:
else pkgs.php81; #
# https://github.com/nextcloud/twofactor_totp/issues/1192
#
# else if versionOlder cfg.package.version "24" then pkgs.php80
# else pkgs.php81;
else pkgs.php80;
} }
{ assertions = [ { assertions = [