From 0c5755d2f0293f9e975e966e52bab071ff408ab3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sat, 29 Jul 2023 18:17:24 +0200 Subject: [PATCH 1/2] nextcloud: Upgrade to version 27 --- configuration/services/nextcloud.nix | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration/services/nextcloud.nix b/configuration/services/nextcloud.nix index 207679a..133d1d1 100644 --- a/configuration/services/nextcloud.nix +++ b/configuration/services/nextcloud.nix @@ -4,7 +4,7 @@ options, ... }: let - nextcloud = pkgs.nextcloud26; + nextcloud = pkgs.nextcloud27; hostName = "nextcloud.${config.services.nginx.domain}"; in { services.nextcloud = { From bb3ffbbd90d9465eeba20b59a32509b9dddcfb03 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tristan=20Dani=C3=ABl=20Maat?= Date: Sat, 29 Jul 2023 18:17:39 +0200 Subject: [PATCH 2/2] nextcloud: Configure redis caching --- configuration/services/nextcloud.nix | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/configuration/services/nextcloud.nix b/configuration/services/nextcloud.nix index 133d1d1..7b87697 100644 --- a/configuration/services/nextcloud.nix +++ b/configuration/services/nextcloud.nix @@ -16,6 +16,8 @@ in { maxUploadSize = "2G"; https = true; + configureRedis = true; + config = { overwriteProtocol = "https"; @@ -37,12 +39,10 @@ in { extraApps = { inherit (pkgs.local) bookmarks calendar contacts cookbook news notes; }; - - # TODO(tlater): Add redis config. This will be much easier - # starting with 22.11, since this will add an `extraOptions` where - # the necessary redis config can go. }; + services.redis.vmOverCommit = true; + # Ensure that this service doesn't start before postgres is ready systemd.services.nextcloud-setup.after = ["postgresql.service"];