nixpkgs/nixos/modules/services/web-apps
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
..
atlassian treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
icingaweb2 treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
ihatemoney ihatemoney: init at 4.1 plus module and test 2019-11-02 12:00:00 +00:00
codimd.nix nixos/codimd: update useCDN default to false 2020-02-28 14:36:46 +01:00
cryptpad.nix nixos/cryptpad: add module 2019-06-07 13:02:51 +02:00
documize.nix documize: introduce state directory 2019-10-05 00:40:44 +02:00
dokuwiki.nix nixos/dokuwiki: init module at 2018-04-22b 2020-01-24 13:27:10 +01:00
frab.nix treewide: use attrs instead of list for types.loaOf options 2020-01-06 10:39:18 -05:00
gotify-server.nix nixos/gotify: init module and test 2019-10-25 16:19:41 +02:00
grocy.nix nixos/grocy: init module 2020-02-09 21:55:27 +01:00
grocy.xml nixos/grocy: init module 2020-02-09 21:55:27 +01:00
jirafeau.nix nixos/jirefeau: add services.jirafeau module 2020-02-18 09:37:44 -08:00
limesurvey.nix nixos/httpd: code cleanup 2020-01-31 20:39:12 -05:00
matomo-doc.xml matomo: Fix consistency check 2019-11-18 14:52:47 +01:00
matomo.nix nixos/treewide: Move rename.nix imports to their respective modules 2019-12-10 02:51:19 +01:00
mattermost.nix Merge pull request #69125 from jslight90/mattermost-5.15 2020-02-12 20:56:00 -08:00
mediawiki.nix nixos/httpd: code cleanup 2020-01-31 20:39:12 -05:00
miniflux.nix treewide: Remove usage of isNull 2019-04-29 14:05:50 +02:00
moinmoin.nix nixos/moin: init 2019-10-25 17:51:09 +02:00
moodle.nix nixos/httpd: code cleanup 2020-01-31 20:39:12 -05:00
nextcloud.nix nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03 2020-03-25 22:07:29 +01:00
nextcloud.xml nixos/nextcloud: implement a safe upgrade-path between 19.09 and 20.03 2020-03-25 22:07:29 +01:00
nexus.nix nexus: 3.18.1-01 -> 3.19.1-01 2019-10-28 21:34:55 +01:00
pgpkeyserver-lite.nix treewide: remove redundant quotes 2019-08-26 21:40:19 +00:00
restya-board.nix restya-board: fix configuration option and switch to file based password provisioning 2019-12-23 05:45:15 +01:00
selfoss.nix treewide: remove redundant quotes 2019-09-08 23:38:31 +00:00
shiori.nix nixos/shiori: init with test 2019-09-22 18:48:07 +02:00
trac.nix nixos/trac: service init 2019-11-03 17:24:08 +01:00
trilium.nix trilium-server: Add nginx reverse proxy configuration to module 2019-12-19 10:14:13 +01:00
tt-rss.nix nixos/tt-rss: fix string escape 2019-09-17 00:23:51 +00:00
virtlyst.nix treewide: Switch to system users 2019-10-12 22:25:28 +02:00
wordpress.nix nixos/httpd: code cleanup 2020-01-31 20:39:12 -05:00
youtrack.nix nixos/modules: Remove all usages of types.string 2019-08-31 18:19:00 +02:00
zabbix.nix nixos/httpd: code cleanup 2020-01-31 20:39:12 -05:00