mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-28 08:33:54 +00:00
2ddb1453e6
Right now, the settings aren't additive which means that when I do services.nextcloud.phpOptions."opcache.interned_strings_buffer = "23"; all other options are discarded because of how the module system works. This isn't very nice in this case, though because wanting to override a single option doesn't mean I want to discard the rest of the - reasonable - defaults. Hence, the settings are showed as default in the option's manual section, but are added with normal priority. That means, to override _all_ options at once, an expression like services.nextcloud.phpOptions = mkForce { /* ... */ }; is needed. This is also way more intuitive IMHO because the `mkForce` explicitly tells that everything will be modified. Also, APCu enable and the memory & file-size limits are also written into `services.nextcloud.phpOptions` rather than adding them silently before passing all options to the PHP package. This has the benefit that users will realize on evaluation time that they configured options that would otherwise be set by the module on its own. |
||
---|---|---|
.. | ||
administration | ||
configuration | ||
development | ||
installation | ||
manpages | ||
release-notes | ||
common.nix | ||
contributing-to-this-manual.chapter.md | ||
default.nix | ||
manual.md | ||
nixos-options.md | ||
preface.md | ||
README.md | ||
shell.nix |