diff --git a/nixos/doc/manual/release-notes/rl-2009.xml b/nixos/doc/manual/release-notes/rl-2009.xml index 511276bcaab3..3a595fcd5093 100644 --- a/nixos/doc/manual/release-notes/rl-2009.xml +++ b/nixos/doc/manual/release-notes/rl-2009.xml @@ -834,6 +834,31 @@ CREATE ROLE postgres LOGIN SUPERUSER; functionally redundent. + + + The package nextcloud17 has been removed and nextcloud18 was marked as insecure + since both of them will + will be EOL (end of life) within the lifetime of 20.09. + + + It's necessary to upgrade to nextcloud19: + + + + From nextcloud17, you have to upgrade to nextcloud18 first as + Nextcloud doesn't allow going multiple major revisions forward in a single upgrade. This is possible + by setting to nextcloud18. + + + + + From nextcloud18, it's possible to directly upgrade to nextcloud19 + by setting to nextcloud19. + + + + + diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 7da119758fc9..0345aca4eef0 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -85,7 +85,7 @@ in { package = mkOption { type = types.package; description = "Which package to use for the Nextcloud instance."; - relatedPackages = [ "nextcloud17" "nextcloud18" "nextcloud19" ]; + relatedPackages = [ "nextcloud18" "nextcloud19" ]; }; maxUploadSize = mkOption { @@ -354,7 +354,7 @@ in { recommended to upgrade to nextcloud19 after that. '') ++ (optional (versionOlder cfg.package.version "19") '' - A legacy Nextcloud install (from before NixOS 20.09/unstable) may be installed. + A legacy Nextcloud install (from before NixOS 20.09) may be installed. If/After nextcloud18 is installed successfully, you can safely upgrade to nextcloud19. If not, please upgrade to nextcloud18 first since Nextcloud doesn't diff --git a/pkgs/servers/nextcloud/default.nix b/pkgs/servers/nextcloud/default.nix index 061f1a1a3943..183da107f128 100644 --- a/pkgs/servers/nextcloud/default.nix +++ b/pkgs/servers/nextcloud/default.nix @@ -27,14 +27,22 @@ let }; }; in { - nextcloud17 = generic { - version = "17.0.6"; - sha256 = "0qq7lkgzsn1zakfym5bjqzpcisxmgfcdd927ddqlhddy3zvgxrxx"; - }; + nextcloud17 = throw '' + Nextcloud v17 has been removed from `nixpkgs` as the support for it will be dropped + by upstream within the lifetime of NixOS 20.09[1]. Please upgrade to Nextcloud v18 by + declaring + + services.nextcloud.package = pkgs.nextcloud18; + + in your NixOS config. + + [1] https://docs.nextcloud.com/server/18/admin_manual/release_schedule.html + ''; nextcloud18 = generic { version = "18.0.9"; sha256 = "0rigg5pv2vnxgmjznlvxfc41s00raxa8jhib5vsznhj55qn99jm1"; + insecure = true; }; nextcloud19 = generic {