Skip to content

Commit 2cf427c

Browse files
authored
Merge: nextcloud31: init at 31.0.0 (#385060)
2 parents 3db26e2 + aa125ff commit 2cf427c

File tree

9 files changed

+504
-103
lines changed

9 files changed

+504
-103
lines changed

nixos/doc/manual/release-notes/rl-2505.section.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,14 @@
188188
- `binwalk` was updated to 3.1.0, which has been rewritten in rust. The python module is no longer available.
189189
See the release notes of [3.1.0](https://github.com/ReFirmLabs/binwalk/releases/tag/v3.1.0) for more information.
190190

191+
- The latest available version of Nextcloud is v31 (available as `pkgs.nextcloud31`). The installation logic is as follows:
192+
- If [`services.nextcloud.package`](#opt-services.nextcloud.package) is specified explicitly, this package will be installed (**recommended**)
193+
- If [`system.stateVersion`](#opt-system.stateVersion) is >=24.11, `pkgs.nextcloud30` will be installed by default.
194+
- If [`system.stateVersion`](#opt-system.stateVersion) is >=24.05, `pkgs.nextcloud31` will be installed by default.
195+
- Please note that an upgrade from v29 (or older) to v31 directly is not possible. Please upgrade to `nextcloud30` (or earlier) first. Nextcloud prohibits skipping major versions while upgrading. You can upgrade by declaring [`services.nextcloud.package = pkgs.nextcloud30;`](options.html#opt-services.nextcloud.package).
196+
197+
- `pkgs.nextcloud28` has been removed since it's out of support upstream.
198+
191199
- `buildGoModule` now passes environment variables via the `env` attribute. `CGO_ENABLED` should now be specified with `env.CGO_ENABLED` when passing to buildGoModule. Direct specification of `CGO_ENABLED` is now redirected by a compatibility layer with a warning, but will become an error in future releases.
192200

193201
Go-related environment variables previously shadowed by `buildGoModule` now results in errors when specified directly. Such variables include `GOOS` and `GOARCH`.

nixos/modules/services/web-apps/nextcloud.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ self-hostable cloud platform. The server setup can be automated using
55
[services.nextcloud](#opt-services.nextcloud.enable). A
66
desktop client is packaged at `pkgs.nextcloud-client`.
77

8-
The current default by NixOS is `nextcloud30` which is also the latest
8+
The current default by NixOS is `nextcloud31` which is also the latest
99
major version available.
1010

1111
## Basic usage {#module-services-nextcloud-basic-usage}

nixos/modules/services/web-apps/nextcloud.nix

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -303,7 +303,7 @@ in {
303303
package = mkOption {
304304
type = types.package;
305305
description = "Which package to use for the Nextcloud instance.";
306-
relatedPackages = [ "nextcloud29" "nextcloud30" ];
306+
relatedPackages = [ "nextcloud29" "nextcloud30" "nextcloud31" ];
307307
};
308308
phpPackage = mkPackageOption pkgs "php" {
309309
example = "php82";
@@ -838,7 +838,7 @@ in {
838838

839839
config = mkIf cfg.enable (mkMerge [
840840
{ warnings = let
841-
latest = 30;
841+
latest = 31;
842842
upgradeWarning = major: nixos:
843843
''
844844
A legacy Nextcloud install (from before NixOS ${nixos}) may be installed.
@@ -868,7 +868,9 @@ in {
868868
++ (optional (versionOlder cfg.package.version "27") (upgradeWarning 26 "23.11"))
869869
++ (optional (versionOlder cfg.package.version "28") (upgradeWarning 27 "24.05"))
870870
++ (optional (versionOlder cfg.package.version "29") (upgradeWarning 28 "24.11"))
871-
++ (optional (versionOlder cfg.package.version "30") (upgradeWarning 29 "24.11"));
871+
++ (optional (versionOlder cfg.package.version "30") (upgradeWarning 29 "24.11"))
872+
++ (optional (versionOlder cfg.package.version "31") (upgradeWarning 30 "25.05"))
873+
;
872874

873875
services.nextcloud.package = with pkgs;
874876
mkDefault (
@@ -880,7 +882,8 @@ in {
880882
''
881883
else if versionOlder stateVersion "24.05" then nextcloud27
882884
else if versionOlder stateVersion "24.11" then nextcloud29
883-
else nextcloud30
885+
else if versionOlder stateVersion "25.05" then nextcloud30
886+
else nextcloud31
884887
);
885888

886889
services.nextcloud.phpPackage =

nixos/tests/nextcloud/default.nix

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,4 +110,4 @@ let
110110
./with-objectstore.nix
111111
];
112112
in
113-
listToAttrs (concatMap genTests [ 29 30 ])
113+
listToAttrs (concatMap genTests [ 29 30 31 ])

pkgs/servers/nextcloud/default.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
nixosTests,
66
nextcloud29Packages,
77
nextcloud30Packages,
8+
nextcloud31Packages,
89
}:
910

1011
let
@@ -70,6 +71,12 @@ in
7071
packages = nextcloud30Packages;
7172
};
7273

74+
nextcloud31 = generic {
75+
version = "31.0.0";
76+
hash = "sha256-b76weze7nPp8kb8bLfvPAxkFi25gSHweqht3frl2LZE=";
77+
packages = nextcloud31Packages;
78+
};
79+
7380
# tip: get the sha with:
7481
# curl 'https://download.nextcloud.com/server/releases/nextcloud-${version}.tar.bz2.sha256'
7582
}

pkgs/servers/nextcloud/packages/29.json

Lines changed: 42 additions & 42 deletions
Large diffs are not rendered by default.

pkgs/servers/nextcloud/packages/30.json

Lines changed: 54 additions & 54 deletions
Large diffs are not rendered by default.

pkgs/servers/nextcloud/packages/31.json

Lines changed: 382 additions & 0 deletions
Large diffs are not rendered by default.

pkgs/top-level/all-packages.nix

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4283,10 +4283,11 @@ with pkgs;
42834283
nm-tray = libsForQt5.callPackage ../tools/networking/networkmanager/tray.nix { };
42844284

42854285
inherit (callPackages ../servers/nextcloud {})
4286-
nextcloud29 nextcloud30;
4286+
nextcloud29 nextcloud30 nextcloud31;
42874287

42884288
nextcloud29Packages = callPackage ../servers/nextcloud/packages { ncVersion = "29"; };
42894289
nextcloud30Packages = callPackage ../servers/nextcloud/packages { ncVersion = "30"; };
4290+
nextcloud31Packages = callPackage ../servers/nextcloud/packages { ncVersion = "31"; };
42904291

42914292
nextcloud-news-updater = callPackage ../servers/nextcloud/news-updater.nix { };
42924293

0 commit comments

Comments
 (0)