nixpkgs/nixos/modules
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
..
config nixos/networking: Add hostFiles option 2020-03-07 01:53:31 +01:00
hardware Merge pull request #66601 from eadwu/nvidia/prime-render-offload 2020-03-01 14:28:57 -03:00
i18n/input-method nixos/ibus: fix missing dconf profile 2020-01-06 20:30:37 +09:00
installer nixos-option: Disable on Nix >= 2.4 because it doesn't compile 2020-03-20 14:52:22 +01:00
misc Merge pull request #81241 from thefloweringash/nesting-system 2020-03-13 09:58:10 +01:00
profiles nixos/plasma5: drop enableQt4Support option 2019-11-22 09:01:05 +01:00
programs nixos/firejail: use local runCommand 2020-03-14 03:09:48 +00:00
security Merge pull request #72029 from lschuermann/tpm2-module 2020-03-15 15:47:06 +01:00
services nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03 2020-03-25 22:07:29 +01:00
system $toplevel/system: use kernel's architecture 2020-03-20 16:55:44 +00:00
tasks Merge pull request #80141 from symphorien/scrub 2020-03-12 22:39:34 +01:00
testing nixos/service-runner.nix: Allow quotes in commands + test 2020-02-28 14:26:29 +01:00
virtualisation nixos/kvmgt: add udev rules for unprivileged access 2020-03-13 07:04:26 +00:00
module-list.nix tailscale: init at 0.96-33 2020-03-18 05:07:47 +00:00
rename.nix nixos: fix module paths in rename.nix 2020-03-11 15:59:22 +01:00