···153 package = mkOption {
154 type = types.package;
155 description = "Which package to use for the Nextcloud instance.";
156- relatedPackages = [ "nextcloud22" "nextcloud23" ];
157 };
158 phpPackage = mkOption {
159 type = types.package;
160- relatedPackages = [ "php74" "php80" ];
161 defaultText = "pkgs.php";
162 description = ''
163 PHP package to use for Nextcloud.
···568569 config = mkIf cfg.enable (mkMerge [
570 { warnings = let
571- latest = 23;
572 upgradeWarning = major: nixos:
573 ''
574 A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
···604 ++ (optional (versionOlder cfg.package.version "21") (upgradeWarning 20 "21.05"))
605 ++ (optional (versionOlder cfg.package.version "22") (upgradeWarning 21 "21.11"))
606 ++ (optional (versionOlder cfg.package.version "23") (upgradeWarning 22 "22.05"))
0607 ++ (optional isUnsupportedMariadb ''
608 You seem to be using MariaDB at an unsupported version (i.e. at least 10.6)!
609 Please note that this isn't supported officially by Nextcloud. You can either
···626 ''
627 else if versionOlder stateVersion "21.11" then nextcloud21
628 else if versionOlder stateVersion "22.05" then nextcloud22
629- else nextcloud23
630 );
631632 services.nextcloud.datadir = mkOptionDefault config.services.nextcloud.home;
633634 services.nextcloud.phpPackage =
635 if versionOlder cfg.package.version "21" then pkgs.php74
636- else pkgs.php80;
0637 }
638639 { assertions = [
···884 # FIXME(@Ma27) Nextcloud isn't compatible with mariadb 10.6,
885 # this is a workaround.
886 # See https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/22
887- settings = {
888 mysqld = {
889 innodb_read_only_compressed = 0;
890 };
···153 package = mkOption {
154 type = types.package;
155 description = "Which package to use for the Nextcloud instance.";
156+ relatedPackages = [ "nextcloud22" "nextcloud23" "nextcloud24" ];
157 };
158 phpPackage = mkOption {
159 type = types.package;
160+ relatedPackages = [ "php74" "php80" "php81" ];
161 defaultText = "pkgs.php";
162 description = ''
163 PHP package to use for Nextcloud.
···568569 config = mkIf cfg.enable (mkMerge [
570 { warnings = let
571+ latest = 24;
572 upgradeWarning = major: nixos:
573 ''
574 A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
···604 ++ (optional (versionOlder cfg.package.version "21") (upgradeWarning 20 "21.05"))
605 ++ (optional (versionOlder cfg.package.version "22") (upgradeWarning 21 "21.11"))
606 ++ (optional (versionOlder cfg.package.version "23") (upgradeWarning 22 "22.05"))
607+ ++ (optional (versionOlder cfg.package.version "24") (upgradeWarning 23 "22.05"))
608 ++ (optional isUnsupportedMariadb ''
609 You seem to be using MariaDB at an unsupported version (i.e. at least 10.6)!
610 Please note that this isn't supported officially by Nextcloud. You can either
···627 ''
628 else if versionOlder stateVersion "21.11" then nextcloud21
629 else if versionOlder stateVersion "22.05" then nextcloud22
630+ else nextcloud24
631 );
632633 services.nextcloud.datadir = mkOptionDefault config.services.nextcloud.home;
634635 services.nextcloud.phpPackage =
636 if versionOlder cfg.package.version "21" then pkgs.php74
637+ else if versionOlder cfg.package.version "24" then pkgs.php80
638+ else pkgs.php81;
639 }
640641 { assertions = [
···886 # FIXME(@Ma27) Nextcloud isn't compatible with mariadb 10.6,
887 # this is a workaround.
888 # See https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/22
889+ settings = mkIf (versionOlder cfg.package.version "24") {
890 mysqld = {
891 innodb_read_only_compressed = 0;
892 };
+1-1
nixos/modules/services/web-apps/nextcloud.xml
···11 desktop client is packaged at <literal>pkgs.nextcloud-client</literal>.
12 </para>
13 <para>
14- The current default by NixOS is <package>nextcloud23</package> which is also the latest
15 major version available.
16 </para>
17 <section xml:id="module-services-nextcloud-basic-usage">
···11 desktop client is packaged at <literal>pkgs.nextcloud-client</literal>.
12 </para>
13 <para>
14+ The current default by NixOS is <package>nextcloud24</package> which is also the latest
15 major version available.
16 </para>
17 <section xml:id="module-services-nextcloud-basic-usage">