From 2a450e2f3611a0762b0a8e3f0bab5861afc03d36 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kier=C3=A1n=20Meinhardt?= Date: Mon, 23 Nov 2020 11:58:24 +0100 Subject: [PATCH] feat(moodle-dl): sync via syncthing instead of sshfs --- configs/cloud.nix | 14 +++++++++----- configs/moodle-dl.nix | 5 ++++- 2 files changed, 13 insertions(+), 6 deletions(-) diff --git a/configs/cloud.nix b/configs/cloud.nix index 87304bd..98bc7a8 100644 --- a/configs/cloud.nix +++ b/configs/cloud.nix @@ -30,12 +30,16 @@ key = toString ; inherit ((import ).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"; + }; }; }; }; diff --git a/configs/moodle-dl.nix b/configs/moodle-dl.nix index ed6a546..322947f 100644 --- a/configs/moodle-dl.nix +++ b/configs/moodle-dl.nix @@ -65,7 +65,10 @@ in devices = { inherit ((import ).syncthing.devices) wilde manakish toum; }; - folders.${moodle-dl-directory}.devices = [ "wilde" "manakish" ]; + folders.${moodle-dl-directory} = { + devices = [ "toum" "wilde" "manakish" ]; + id = "moodle-dl"; + }; }; };