mirror of
https://github.com/SuperSandro2000/nixos-modules.git
synced 2024-05-29 04:20:47 +02:00
nextcloud: only use settings when available
This commit is contained in:
parent
98ceffd961
commit
453f941ff2
|
@ -1,4 +1,4 @@
|
||||||
{ config, lib, libS, pkgs, ... }:
|
{ config, lib, libS, options, pkgs, ... }:
|
||||||
|
|
||||||
let
|
let
|
||||||
cfg = config.services.nextcloud;
|
cfg = config.services.nextcloud;
|
||||||
|
@ -51,7 +51,8 @@ in
|
||||||
"opcache.jit_buffer_size" = "128M";
|
"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 {
|
(lib.mkIf cfg.recommendedDefaults {
|
||||||
# otherwise the Logging App does not function
|
# otherwise the Logging App does not function
|
||||||
log_type = "file";
|
log_type = "file";
|
||||||
|
|
Loading…
Reference in New Issue
Block a user