nixpkgs/pkgs/top-level
Maximilian Bosch 702f645aa8
nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03
It's impossible to move two major-versions forward when upgrading
Nextcloud. This is an issue when comming from 19.09 (using Nextcloud 16)
and trying to upgrade to 20.03 (using Nextcloud 18 by default).

This patch implements the measurements discussed in #82056 and #82353 to
improve the update process and to circumvent similar issues in the
future:

* `pkgs.nextcloud` has been removed in favor of versioned attributes
  (currently `pkgs.nextcloud17` and `pkgs.nextcloud18`). With that
  approach we can safely backport major-releases in the future to
  simplify those upgrade-paths and we can select one of the
  major-releases as default depending on the configuration (helpful to
  decide whether e.g. `pkgs.nextcloud17` or `pkgs.nextcloud18` should be
  used on 20.03 and `master` atm).

* If `system.stateVersion` is older than `20.03`, `nextcloud17` will be
  used (which is one major-release behind v16 from 19.09). When using a
  package older than the latest major-release available (currently v18),
  the evaluation will cause a warning which describes the issue and
  suggests next steps.

  To make those package-selections easier, a new option to define the
  package to be used for the service (namely
  `services.nextcloud.package`) was introduced.

* If `pkgs.nextcloud` exists (e.g. due to an overlay which was used to
  provide more recent Nextcloud versions on older NixOS-releases), an
  evaluation error will be thrown by default: this is to make sure that
  `services.nextcloud.package` doesn't use an older version by accident
  after checking the state-version. If `pkgs.nextcloud` is added
  manually, it needs to be declared explicitly in
  `services.nextcloud.package`.

* The `nixos/nextcloud`-documentation contains a
  "Maintainer information"-chapter  which describes how to roll out new
  Nextcloud releases and how to deal with old (and probably unsafe)
  versions.

Closes #82056
2020-03-25 22:07:29 +01:00
..
aliases.nix Merge pull request #82861 from gila/terraform-lxd 2020-03-19 13:08:20 +00:00
all-packages.nix nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03 2020-03-25 22:07:29 +01:00
beam-packages.nix lfe: 1.2.1 -> 1.3 2020-02-10 20:03:47 +01:00
config.nix
coq-packages.nix coqPackages.hierarchy-builder: init at 0.9.0 2020-03-11 17:15:52 +01:00
darwin-packages.nix xcode: Add more hashes, and fix some old ones 2020-01-03 15:19:08 -05:00
default.nix
dhall-packages.nix Add Nixpkgs support for Dhall 2020-02-11 22:02:53 -08:00
dotnet-packages.nix treewide: mark some broken packages as broken 2019-10-08 17:14:26 +02:00
emacs-packages.nix emacs: use runCommand to generate wrapper 2019-09-18 22:32:19 +02:00
emscripten-packages.nix Fix package metadata like version and homepage 2019-11-07 17:20:33 +01:00
haskell-packages.nix ghc: add 8.8.3 2020-02-28 20:42:25 +01:00
haxe-packages.nix treewide: remove redundant rec 2019-08-28 11:07:32 +00:00
impure.nix Revert "stdenv/check-meta: getEnv if the attribute is unset (#72376)" (#72752) 2019-11-03 20:38:35 -05:00
java-packages.nix
lua-packages.nix Merge remote-tracking branch 'upstream/master' into wrapper-pname-support 2019-11-24 17:25:07 +00:00
make-tarball.nix Fix 'nix flake check' 2020-02-10 16:26:33 +01:00
metrics.nix
ocaml-packages.nix OCaml: default to version 4.08 2020-03-13 22:31:01 +01:00
perl-packages.nix perlPackages.CryptSSLeay: 0.72 -> 0.73_06 2020-03-19 18:12:38 -07:00
php-packages.nix phpPackages.exts: Mark if extensions are zend extensions or not 2020-03-15 19:34:28 +01:00
pure-packages.nix octaveHg: drop 2020-02-09 19:24:18 +01:00
python-packages.nix pythonPackages.pproxy: init at 2.3.2 2020-03-19 21:49:22 -07:00
release-cross.nix Merge branch 'ghcjs-cross-without-cc-19.09' into ghcjs-cross-without-cc 2019-12-24 17:55:35 -05:00
release-lib.nix
release-python.nix
release-small.nix release.nix and release-small.nix: remove unar, fixes #76927 2020-01-13 15:53:49 +01:00
release.nix release.nix: remove stack job from x86_64-darwin 2020-02-28 16:22:11 -08:00
ruby-packages.nix rubyPackages: update 2020-02-09 09:18:47 +01:00
splice.nix
stage.nix symlinkJoin: fix cross 2019-12-25 12:17:09 -05:00
static.nix gcc5: remove 2020-01-28 20:11:00 +01:00
unix-tools.nix
wine-packages.nix faudio, wine, vkd3d: add faudio 19.10 and vkd3d 1.1 to wine 2019-10-12 14:57:28 +02:00