Skip to content

Commit

Permalink
nixos/moodle: add extraConfig option
Browse files Browse the repository at this point in the history
  • Loading branch information
aanderse committed Sep 16, 2019
1 parent 872122a commit 7491f85
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions nixos/modules/services/web-apps/moodle.nix
Expand Up @@ -45,6 +45,8 @@ let
$CFG->aspellpath = '${pkgs.aspell}/bin/aspell';
$CFG->pathtodot = '${pkgs.graphviz}/bin/dot';
${cfg.extraConfig}
require_once('${cfg.package}/share/moodle/lib/setup.php');
// There is no php closing tag in this file,
Expand Down Expand Up @@ -172,6 +174,19 @@ in
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
Expand Down

0 comments on commit 7491f85

Please sign in to comment.