nixpkgs/nixos/modules/services
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
..
admin nixos/oxidized: add missing slash to PIDFile path 2020-01-06 16:58:54 +01:00
amqp treewide: fix redirected urls 2020-01-22 11:26:22 +01:00
audio nixos/alsa: replace list by attrset in environment.etc 2020-02-14 01:17:18 +01:00
backup Merge pull request #72060 from lopsided98/sanoid-init 2020-02-10 01:28:41 +01:00
cluster nixos/kubernetes: allow configuring cfssl API server SANs 2020-01-18 23:39:21 -08:00
computing folding@home: 6.02 -> 7.5.1 2020-03-14 13:01:26 -07:00
continuous-integration nixos/buildkite-agents: fix hooksDir assertion 2020-02-19 12:22:35 +01:00
databases nixos/mysql: add settings and configFile options 2020-03-10 15:15:11 -04:00
desktops nixos/malcontent: init 2020-03-10 23:30:20 +01:00
development nixos/jupyter: Fix documentation example for jupyter.kernels (#56415) 2020-01-31 15:30:02 +01:00
editors treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
games nixos/openarena: fix service's binary name 2019-11-24 16:55:20 +01:00
hardware nixos/tlp: revamp 2020-02-27 09:58:51 -08:00
logging treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
mail Merge pull request #76739 from symphorien/mail_plugins 2020-03-12 22:44:23 +01:00
misc nixos/doc/matrix-synapse: refactor 2020-03-16 10:39:42 +01:00
monitoring nixos/prometheus: add checkConfig 2020-03-14 04:40:55 +00:00
network-filesystems Merge pull request #75922 from tadfisher/kbfs-fixes 2020-01-28 19:13:40 -05:00
networking resilio: fix a list being assigned to the option config.users.groups 2020-03-19 11:25:56 -05:00
printing treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
scheduling treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
search solr: drop 7.x series 2020-01-18 08:50:35 -05:00
security fail2ban: 0.10.5 -> 0.11.1 (#67931) 2020-01-31 08:58:58 +00:00
system treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
torrent nixos/transmission: Allow others to read the directory 2020-02-24 08:03:21 +01:00
ttys treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
wayland nixos/cage: move ConditionPathExists to service config 2020-03-09 00:47:49 +01:00
web-apps nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03 2020-03-25 22:07:29 +01:00
web-servers Merge pull request #81891 from emilazy/nginx-use-mozilla-tls-config 2020-03-06 14:30:28 +00:00
x11 nixos/lightdm-tiny-greeter: init module 2020-03-11 08:12:35 +00:00