mirror of
https://github.com/kmein/niveum
synced 2026-03-21 12:21:08 +01:00
feat(moodle-dl): run in containers
This commit is contained in:
@@ -5,22 +5,27 @@ let
|
|||||||
});
|
});
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
imports = [ <niveum/modules/moodle-dl.nix> ];
|
containers.moodle-dl-borsfaye = {
|
||||||
|
autoStart = true;
|
||||||
|
config = { lib, pkgs, ...}: {
|
||||||
|
imports = [ <niveum/modules/moodle-dl.nix> ];
|
||||||
|
|
||||||
services.moodle-dl = {
|
services.moodle-dl = {
|
||||||
enable = true;
|
enable = true;
|
||||||
startAt = "hourly";
|
startAt = "hourly";
|
||||||
package = moodle-dl-package;
|
package = moodle-dl-package;
|
||||||
notifyOnly = true;
|
notifyOnly = true;
|
||||||
settings = {
|
settings = {
|
||||||
telegram = {
|
telegram = {
|
||||||
token = lib.strings.fileContents <system-secrets/telegram/moodle-dl.token>;
|
token = lib.strings.fileContents <system-secrets/telegram/moodle-dl.token>;
|
||||||
chat_id = "311425510";
|
chat_id = "311425510";
|
||||||
send_error_msg = false;
|
send_error_msg = false;
|
||||||
|
};
|
||||||
|
token = lib.strings.fileContents <system-secrets/moodle-dl/faye.token>;
|
||||||
|
moodle_domain = "moodle.hu-berlin.de";
|
||||||
|
moodle_path = "/";
|
||||||
|
};
|
||||||
};
|
};
|
||||||
token = lib.strings.fileContents <system-secrets/moodle-dl/faye.token>;
|
|
||||||
moodle_domain = "moodle.hu-berlin.de";
|
|
||||||
moodle_path = "/";
|
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -66,10 +66,10 @@ in
|
|||||||
cert = toString <system-secrets/syncthing/cert.pem>;
|
cert = toString <system-secrets/syncthing/cert.pem>;
|
||||||
key = toString <system-secrets/syncthing/key.pem>;
|
key = toString <system-secrets/syncthing/key.pem>;
|
||||||
devices = {
|
devices = {
|
||||||
inherit ((import <niveum/lib>).syncthing.devices) wilde manakish toum;
|
inherit ((import <niveum/lib>).syncthing.devices) wilde manakish zaatar;
|
||||||
};
|
};
|
||||||
folders.${moodle-dl-directory} = {
|
folders.${moodle-dl-directory} = {
|
||||||
devices = [ "toum" "wilde" "manakish" ];
|
devices = [ "zaatar" "wilde" "manakish" ];
|
||||||
id = "moodle-dl";
|
id = "moodle-dl";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user