services.librenms.phpOptions
NixOS option
Options for PHP’s php.ini file for librenms. Please note that this option is additive on purpose while the attribute values inside the default are option defaults: that means that { services.librenms.phpOptions."opcache.enable" = 1; } will override the php.ini option opcache.enable without discarding the rest of the defaults. Overriding all of phpOptions can be done like this: { services.librenms.phpOptions = lib.mkForce { /* ... */ }; }
type: attribute set of (string or signed integer)Default
declared in: nixos/modules/services/monitoring/librenms.nixView source on NixOS/nixpkgs →{
"date.timezone" = {
_type = "literalExpression";
text = "config.time.timeZone";
};
log_errors = "on";
memory_limit = {
_type = "literalExpression";
text = "\${toString cfg.settings.php_memory_limit}M";
};
"opcache.enable" = {
_type = "literalExpression";
text = "1";
};
"opcache.memory_consumption" = {
_type = "literalExpression";
text = "256";
};
post_max_size = "100M";
upload_max_filesize = "100M";
zend_extension = {
_type = "literalExpression";
text = "opcache";
};
}