1
0
mirror of https://github.com/kmein/niveum synced 2026-03-16 10:11:08 +01:00

feat(moodle-dl): sync via syncthing instead of sshfs

This commit is contained in:
2020-11-23 11:58:24 +01:00
parent 485e07ec9e
commit 2a450e2f36
2 changed files with 13 additions and 6 deletions

View File

@@ -30,12 +30,16 @@
key = toString <system-secrets/syncthing/key.pem>;
inherit ((import <niveum/lib>).syncthing) devices;
folders =
let syncthing-dir = "${config.users.users.me.home}/cloud/syncthing";
let cloud-dir = "${config.users.users.me.home}/cloud";
in {
"${syncthing-dir}/common".devices = [ "wilde" "manakish" ];
"${syncthing-dir}/library".devices = lib.attrNames devices;
"${syncthing-dir}/mundoiu".devices = lib.attrNames devices;
"${syncthing-dir}/music".devices = lib.attrNames devices;
"${cloud-dir}/syncthing/common".devices = [ "wilde" "manakish" ];
"${cloud-dir}/syncthing/library".devices = [ "wilde" "manakish" "heym" ];
"${cloud-dir}/syncthing/mundoiu".devices = [ "wilde" "manakish" "heym" ];
"${cloud-dir}/syncthing/music".devices = [ "wilde" "manakish" "heym" ];
"${cloud-dir}/moodle" = {
devices = [ "wilde" "toum" "manakish" ];
id = "moodle-dl";
};
};
};
};