From 95da0e6bb22edc4ca8891c1597afa81d1346b599 Mon Sep 17 00:00:00 2001 From: Ingolf Wagner Date: Fri, 6 Mar 2020 00:11:47 +0800 Subject: [PATCH] nextcloud: 16.0.3 -> 18.0.1 --- configs/workhorse/nextcloud.nix | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/configs/workhorse/nextcloud.nix b/configs/workhorse/nextcloud.nix index 23b2af1..d983e5b 100644 --- a/configs/workhorse/nextcloud.nix +++ b/configs/workhorse/nextcloud.nix @@ -23,6 +23,22 @@ config = { config, pkgs, ... }: { + # don't forget the database backup before doing this + # https://docs.nextcloud.com/server/stable/admin_manual/maintenance/backup.html + # https://docs.nextcloud.com/server/stable/admin_manual/maintenance/upgrade.html + # use snapshots in case of a rollback + nixpkgs.config.packageOverrides = super: { + nextcloud = super.nextcloud.overrideAttrs (old: rec { + name = "nextcloud-${version}"; + version = "18.0.1"; + src = super.fetchurl { + url = + "https://download.nextcloud.com/server/releases/nextcloud-18.0.1.tar.bz2"; + sha256 = "1h0rxpdssn1hc65k41zbvww9r4f79vbd9bixc9ri5n7hp0say3vp"; + }; + }); + }; + networking.firewall.allowedTCPPorts = [ 80 ]; networking.firewall.allowedUDPPorts = [ 80 ]; @@ -32,7 +48,7 @@ config.adminpassFile = toString ; nginx.enable = true; hostName = "nextcloud.ingolf-wagner.de"; - logLevel = 2; + #logLevel = 0; config.overwriteProtocol = "https"; config.extraTrustedDomains = [ "nextcloud.ingolf-wagner.de"