diff --git a/configs/moodle-dl/borsfaye.nix b/configs/moodle-dl/borsfaye.nix new file mode 100644 index 0000000..97b6df5 --- /dev/null +++ b/configs/moodle-dl/borsfaye.nix @@ -0,0 +1,32 @@ +{ config, pkgs, lib, ... }: +let + nixpkgs-kmein = builtins.fetchGit { + url = "https://github.com/kmein/nixpkgs"; + ref = "refs/heads/feature/moodle-dl-module"; + rev = "ea2e0387ee946e575f7851ec21debc9179d82ad0"; + }; + + moodle-dl-package = (import nixpkgs-kmein {}).moodle-dl.overrideAttrs (old: old // { + patches = [ ]; + }); +in +{ + imports = [ "${nixpkgs-kmein}/nixos/modules/services/networking/moodle-dl.nix" ]; + + services.moodle-dl = { + enable = true; + startAt = "hourly"; + package = moodle-dl-package; + notifyOnly = true; + settings = { + telegram = { + token = lib.strings.fileContents ; + chat_id = "311425510"; + send_error_msg = false; + }; + token = lib.strings.fileContents ; + moodle_domain = "moodle.hu-berlin.de"; + moodle_path = "/"; + }; + }; +} diff --git a/configs/moodle-dl.nix b/configs/moodle-dl/meinhark.nix similarity index 100% rename from configs/moodle-dl.nix rename to configs/moodle-dl/meinhark.nix diff --git a/systems/makanek/configuration.nix b/systems/makanek/configuration.nix index 58d049c..e481f34 100644 --- a/systems/makanek/configuration.nix +++ b/systems/makanek/configuration.nix @@ -51,6 +51,7 @@ in + diff --git a/systems/toum/configuration.nix b/systems/toum/configuration.nix index bd34958..a1b2a23 100644 --- a/systems/toum/configuration.nix +++ b/systems/toum/configuration.nix @@ -8,7 +8,7 @@ in { - +