set devices on folders

This commit is contained in:
Leyla Becker 2025-02-24 13:01:34 -06:00
parent 427a259632
commit d2b43225ee

View file

@ -73,27 +73,36 @@ in {
id = "OGPAEU6-5UR56VL-SP7YC4Y-IMVCRTO-XFD4CYN-Z6T5TZO-PFZNAT6-4MKWPQS"; id = "OGPAEU6-5UR56VL-SP7YC4Y-IMVCRTO-XFD4CYN-Z6T5TZO-PFZNAT6-4MKWPQS";
}; };
}; };
folders = lib.mkMerge [ folders = let
allDevices = [
"ceder"
"coven"
(lib.mkIf (config.networking.hostName != "defiant") "defiant")
(lib.mkIf (config.networking.hostName != "twilight") "twilight")
(lib.mkIf (config.networking.hostName != "horizon") "horizon")
];
in
lib.mkMerge [
config.host.sync.folders.extraFolders config.host.sync.folders.extraFolders
(lib.mkIf config.host.sync.folders.leyla.documents.enable { (lib.mkIf config.host.sync.folders.leyla.documents.enable {
"documents" = { "documents" = {
id = "hvrj0-9bm1p"; id = "hvrj0-9bm1p";
path = "${mountDir}/leyla/documents"; path = "${mountDir}/leyla/documents";
devices = ["ceder" "coven"]; devices = allDevices;
}; };
}) })
(lib.mkIf config.host.sync.folders.leyla.calendar.enable { (lib.mkIf config.host.sync.folders.leyla.calendar.enable {
"calendar" = { "calendar" = {
id = "8oatl-1rv6w"; id = "8oatl-1rv6w";
path = "${mountDir}/leyla/calendar"; path = "${mountDir}/leyla/calendar";
devices = ["ceder" "coven"]; devices = allDevices;
}; };
}) })
(lib.mkIf config.host.sync.folders.leyla.notes.enable { (lib.mkIf config.host.sync.folders.leyla.notes.enable {
"notes" = { "notes" = {
id = "dwbuv-zffnf"; id = "dwbuv-zffnf";
path = "${mountDir}/leyla/notes"; path = "${mountDir}/leyla/notes";
devices = ["ceder" "coven"]; devices = allDevices;
}; };
}) })
]; ];