From 690449f3ae63a28c7aef107c433a6fb06b1e18bc Mon Sep 17 00:00:00 2001 From: Maximilian Bosch Date: Thu, 4 Mar 2021 21:13:51 +0100 Subject: [PATCH] nixos/nextcloud: enable apc cache for cli if apcu is enabled As described in the admin manual[1] of Nextcloud. [1] https://docs.nextcloud.com/server/21/admin_manual/configuration_server/caching_configuration.html#id1 --- nixos/modules/services/web-apps/nextcloud.nix | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/nixos/modules/services/web-apps/nextcloud.nix b/nixos/modules/services/web-apps/nextcloud.nix index 6497a259dbaa..5636415f6a0d 100644 --- a/nixos/modules/services/web-apps/nextcloud.nix +++ b/nixos/modules/services/web-apps/nextcloud.nix @@ -28,7 +28,10 @@ let upload_max_filesize = cfg.maxUploadSize; post_max_size = cfg.maxUploadSize; memory_limit = cfg.maxUploadSize; - } // cfg.phpOptions; + } // cfg.phpOptions + // optionalAttrs cfg.caching.apcu { + "apc.enable_cli" = "1"; + }; occ = pkgs.writeScriptBin "nextcloud-occ" '' #! ${pkgs.runtimeShell}