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"; + }; }; };