summary refs log tree commit diff
path: root/nixos/tests/nextcloud/default.nix
diff options
context:
space:
mode:
authorMaximilian Bosch <maximilian@mbosch.me>2021-10-25 01:26:08 +0200
committerMaximilian Bosch <maximilian@mbosch.me>2021-10-25 01:34:47 +0200
commite1e15974f8123dcfa2272ba594c5638dc73c787c (patch)
tree5f590d072a36be08d0e1011a31e941fcf14d2aa0 /nixos/tests/nextcloud/default.nix
parent6b23e8fc7820366e489377b5b00890f088f36a01 (diff)
downloadnixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.tar
nixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.tar.gz
nixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.tar.bz2
nixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.tar.lz
nixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.tar.xz
nixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.tar.zst
nixpkgs-e1e15974f8123dcfa2272ba594c5638dc73c787c.zip
nextcloud20: drop
The version 20 of Nextcloud will be EOLed by the end of this month[1].

Since the recommended default (that didn't raise an eval-warning) on
21.05 was Nextcloud 21, this shouldn't affect too many people.

In order to ensure that nobody does a (not working) upgrade across
several major-versions of Nextcloud, I replaced the derivation of
`nextcloud20` with a `throw` that provides instructions how to proceed.

The only case that I consider "risky" is a setup upgraded from 21.05 (or
older) with a `system.stateVersion` <21.11 and with
`services.nextcloud.package` not explicitly declared in its config. To
avoid that, I also left the `else-if` for `stateVersion < 21.03` which
now sets `services.nextcloud.package` to `pkgs.nextcloud20` and thus
leads to an eval-error. This condition can be removed
as soon as 21.05 is EOL because then it's safe to assume that only
21.11. is used as stable release where no Nextcloud <=20 exists that can
lead to such an issue.

It can't be removed earlier because then every `system.stateVersion <
21.11` would lead to `nextcloud21` which is a problem if `nextcloud19`
is still used.

[1] https://docs.nextcloud.com/server/20/admin_manual/release_schedule.html
Diffstat (limited to 'nixos/tests/nextcloud/default.nix')
-rw-r--r--nixos/tests/nextcloud/default.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/tests/nextcloud/default.nix b/nixos/tests/nextcloud/default.nix
index 65043e509b3..bd7a7aacdc9 100644
--- a/nixos/tests/nextcloud/default.nix
+++ b/nixos/tests/nextcloud/default.nix
@@ -18,4 +18,4 @@ foldl
     };
   })
   {}
-  [ 20 21 22 ]
+  [ 21 22 ]