1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-24 06:31:02 +00:00

nixos/moodle: add extraConfig option

This commit is contained in:
Aaron Andersen 2019-09-16 08:03:37 -04:00
parent 872122af43
commit 7491f85e4f

View file

@ -45,6 +45,8 @@ let
$CFG->aspellpath = '${pkgs.aspell}/bin/aspell'; $CFG->aspellpath = '${pkgs.aspell}/bin/aspell';
$CFG->pathtodot = '${pkgs.graphviz}/bin/dot'; $CFG->pathtodot = '${pkgs.graphviz}/bin/dot';
${cfg.extraConfig}
require_once('${cfg.package}/share/moodle/lib/setup.php'); require_once('${cfg.package}/share/moodle/lib/setup.php');
// There is no php closing tag in this file, // There is no php closing tag in this file,
@ -172,6 +174,19 @@ in
for details on configuration directives. for details on configuration directives.
''; '';
}; };
extraConfig = mkOption {
type = types.lines;
default = "";
description = ''
Any additional text to be appended to the config.php
configuration file. This is a PHP script. For configuration
details, see <link xlink:href="https://docs.moodle.org/37/en/Configuration_file"/>.
'';
example = ''
$CFG->disableupdatenotifications = true;
'';
};
}; };
# implementation # implementation