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

View File

@@ -65,7 +65,10 @@ in
devices = { devices = {
inherit ((import <niveum/lib>).syncthing.devices) wilde manakish toum; inherit ((import <niveum/lib>).syncthing.devices) wilde manakish toum;
}; };
folders.${moodle-dl-directory}.devices = [ "wilde" "manakish" ]; folders.${moodle-dl-directory} = {
devices = [ "toum" "wilde" "manakish" ];
id = "moodle-dl";
};
}; };
}; };