1
0
mirror of https://github.com/kmein/niveum synced 2026-03-30 09:11:10 +02:00

feat(moodle-dl): run in containers

This commit is contained in:
2021-09-18 14:24:08 +02:00
parent 8b8fbeb511
commit f036e50210
2 changed files with 21 additions and 16 deletions

View File

@@ -5,6 +5,9 @@ let
});
in
{
containers.moodle-dl-borsfaye = {
autoStart = true;
config = { lib, pkgs, ...}: {
imports = [ <niveum/modules/moodle-dl.nix> ];
services.moodle-dl = {
@@ -23,4 +26,6 @@ in
moodle_path = "/";
};
};
};
};
}

View File

@@ -66,10 +66,10 @@ in
cert = toString <system-secrets/syncthing/cert.pem>;
key = toString <system-secrets/syncthing/key.pem>;
devices = {
inherit ((import <niveum/lib>).syncthing.devices) wilde manakish toum;
inherit ((import <niveum/lib>).syncthing.devices) wilde manakish zaatar;
};
folders.${moodle-dl-directory} = {
devices = [ "toum" "wilde" "manakish" ];
devices = [ "zaatar" "wilde" "manakish" ];
id = "moodle-dl";
};
};