mirror of
https://github.com/kmein/niveum
synced 2026-03-16 10:11:08 +01:00
feat(moodle-dl): init for borsfaye
This commit is contained in:
32
configs/moodle-dl/borsfaye.nix
Normal file
32
configs/moodle-dl/borsfaye.nix
Normal file
@@ -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 = [ <niveum/packages/moodle-dl/telegram-format.patch> ];
|
||||
});
|
||||
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 <system-secrets/telegram/moodle-dl.token>;
|
||||
chat_id = "311425510";
|
||||
send_error_msg = false;
|
||||
};
|
||||
token = lib.strings.fileContents <system-secrets/moodle-dl/faye.token>;
|
||||
moodle_domain = "moodle.hu-berlin.de";
|
||||
moodle_path = "/";
|
||||
};
|
||||
};
|
||||
}
|
||||
@@ -51,6 +51,7 @@ in
|
||||
<niveum/configs/spacetime.nix>
|
||||
<niveum/configs/sshd.nix>
|
||||
<niveum/configs/nextcloud.nix>
|
||||
<niveum/configs/moodle-dl/borsfaye.nix>
|
||||
<niveum/configs/save-space.nix>
|
||||
<niveum/configs/version.nix>
|
||||
<niveum/configs/radio.nix>
|
||||
|
||||
@@ -8,7 +8,7 @@ in {
|
||||
<niveum/configs/distrobump.nix>
|
||||
<niveum/configs/spacetime.nix>
|
||||
<niveum/configs/sshd.nix>
|
||||
<niveum/configs/moodle-dl.nix>
|
||||
<niveum/configs/moodle-dl/meinhark.nix>
|
||||
<niveum/configs/save-space.nix>
|
||||
<niveum/configs/wifi.nix>
|
||||
<niveum/configs/tmux.nix>
|
||||
|
||||
Reference in New Issue
Block a user