nixos/nextcloud: use array_merge instead of array_push
This should correctly merge the various configs (via nix module options, the secretFile option, and the extraOptions option).
This commit is contained in:
parent
fb389cb0db
commit
727bdd736c
1 changed files with 3 additions and 3 deletions
|
@ -520,10 +520,10 @@ in {
|
|||
${optionalString (c.defaultPhoneRegion != null) "'default_phone_region' => '${c.defaultPhoneRegion}',"}
|
||||
];
|
||||
|
||||
$EXTRACONFIG = json_decode('${builtins.toJSON cfg.extraOptions}', true);
|
||||
$EXTRACONFIG = json_decode(file_get_contents("${jsonFormat.generate "nextcloud-extraOptions.json" cfg.extraOptions}"), true);
|
||||
|
||||
array_push($CONFIG, $EXTRACONFIG);
|
||||
${optionalString (cfg.secretFile != null) "array_push($CONFIG, nix_read_secrets());"}
|
||||
$CONFIG = array_merge($CONFIG, $EXTRACONFIG);
|
||||
${optionalString (cfg.secretFile != null) "$CONFIG = array_merge($CONFIG, nix_read_secrets());"}
|
||||
'';
|
||||
occInstallCmd = let
|
||||
dbpass = if c.dbpassFile != null
|
||||
|
|
Loading…
Reference in a new issue