mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
fix(moodle-dl): create config correctly
This commit is contained in:
@@ -81,7 +81,7 @@ in {
|
||||
Group = config.users.groups.moodle-dl.name;
|
||||
WorkingDirectory = cfg.directory;
|
||||
ExecStart = "${cfg.package}/bin/moodle-dl ${lib.optionalString cfg.notifyOnly "--without-downloading-files"}";
|
||||
ExecStartPre = "${pkgs.jq}/bin/jq -s '.[0] *.[1]' ${toString moodle-dl-json} ${toString cfg.tokensFile} > ${cfg.directory}/config.json";
|
||||
ExecStartPre = pkgs.writers.writeDash "moodle-dl-config" "${pkgs.jq}/bin/jq -s '.[0] * .[1]' ${toString moodle-dl-json} ${toString cfg.tokensFile} > ${cfg.directory}/config.json";
|
||||
}
|
||||
(mkIf (cfg.directory == stateDirectoryDefault) {StateDirectory = "moodle-dl";})
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user