nextcloud: only use settings when available

This commit is contained in:
Sandro - 2024-01-31 23:41:37 +01:00
parent 98ceffd961
commit 453f941ff2
Signed by: sandro
GPG Key ID: 3AF5A43A3EECC2E5
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
{ config, lib, libS, pkgs, ... }:
{ config, lib, libS, options, pkgs, ... }:
let
cfg = config.services.nextcloud;
@ -51,7 +51,8 @@ in
"opcache.jit_buffer_size" = "128M";
};
settings = lib.mkMerge [
# TODO: drop when 23.11 support is not longer required
${if options.services.nextcloud?settings then "settings" else "extraOptions"} = lib.mkMerge [
(lib.mkIf cfg.recommendedDefaults {
# otherwise the Logging App does not function
log_type = "file";