···153153 package = mkOption {
154154 type = types.package;
155155 description = "Which package to use for the Nextcloud instance.";
156156- relatedPackages = [ "nextcloud22" "nextcloud23" ];
156156+ relatedPackages = [ "nextcloud22" "nextcloud23" "nextcloud24" ];
157157 };
158158 phpPackage = mkOption {
159159 type = types.package;
160160- relatedPackages = [ "php74" "php80" ];
160160+ relatedPackages = [ "php74" "php80" "php81" ];
161161 defaultText = "pkgs.php";
162162 description = ''
163163 PHP package to use for Nextcloud.
···568568569569 config = mkIf cfg.enable (mkMerge [
570570 { warnings = let
571571- latest = 23;
571571+ latest = 24;
572572 upgradeWarning = major: nixos:
573573 ''
574574 A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
···604604 ++ (optional (versionOlder cfg.package.version "21") (upgradeWarning 20 "21.05"))
605605 ++ (optional (versionOlder cfg.package.version "22") (upgradeWarning 21 "21.11"))
606606 ++ (optional (versionOlder cfg.package.version "23") (upgradeWarning 22 "22.05"))
607607+ ++ (optional (versionOlder cfg.package.version "24") (upgradeWarning 23 "22.05"))
607608 ++ (optional isUnsupportedMariadb ''
608609 You seem to be using MariaDB at an unsupported version (i.e. at least 10.6)!
609610 Please note that this isn't supported officially by Nextcloud. You can either
···626627 ''
627628 else if versionOlder stateVersion "21.11" then nextcloud21
628629 else if versionOlder stateVersion "22.05" then nextcloud22
629629- else nextcloud23
630630+ else nextcloud24
630631 );
631632632633 services.nextcloud.datadir = mkOptionDefault config.services.nextcloud.home;
633634634635 services.nextcloud.phpPackage =
635636 if versionOlder cfg.package.version "21" then pkgs.php74
636636- else pkgs.php80;
637637+ else if versionOlder cfg.package.version "24" then pkgs.php80
638638+ else pkgs.php81;
637639 }
638640639641 { assertions = [
···884886 # FIXME(@Ma27) Nextcloud isn't compatible with mariadb 10.6,
885887 # this is a workaround.
886888 # See https://help.nextcloud.com/t/update-to-next-cloud-21-0-2-has-get-an-error/117028/22
887887- settings = {
889889+ settings = mkIf (versionOlder cfg.package.version "24") {
888890 mysqld = {
889891 innodb_read_only_compressed = 0;
890892 };
+1-1
nixos/modules/services/web-apps/nextcloud.xml
···1111 desktop client is packaged at <literal>pkgs.nextcloud-client</literal>.
1212 </para>
1313 <para>
1414- The current default by NixOS is <package>nextcloud23</package> which is also the latest
1414+ The current default by NixOS is <package>nextcloud24</package> which is also the latest
1515 major version available.
1616 </para>
1717 <section xml:id="module-services-nextcloud-basic-usage">
···22# executable that matches that packages name, so that they'll work with `nix run`.
33{
44 # Packages that provide multiple executables where one is clearly the `mainProgram`.
55+ "@antfu/ni" = "ni";
66+ "@electron-forge/cli" = "electron-forge";
77+ "@squoosh/cli" = "squoosh-cli";
88+ "@webassemblyjs/cli" = "wasm2wast";
99+ coffee-script = "coffee";
510 typescript = "tsc";
1111+ vue-cli = "vue";
612713 # Packages that provide a single executable whose name differs from the package's `name`.
814 "@angular/cli" = "ng";