set devices on folders
This commit is contained in:
parent
427a259632
commit
d2b43225ee
|
@ -73,30 +73,39 @@ in {
|
||||||
id = "OGPAEU6-5UR56VL-SP7YC4Y-IMVCRTO-XFD4CYN-Z6T5TZO-PFZNAT6-4MKWPQS";
|
id = "OGPAEU6-5UR56VL-SP7YC4Y-IMVCRTO-XFD4CYN-Z6T5TZO-PFZNAT6-4MKWPQS";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
folders = lib.mkMerge [
|
folders = let
|
||||||
config.host.sync.folders.extraFolders
|
allDevices = [
|
||||||
(lib.mkIf config.host.sync.folders.leyla.documents.enable {
|
"ceder"
|
||||||
"documents" = {
|
"coven"
|
||||||
id = "hvrj0-9bm1p";
|
(lib.mkIf (config.networking.hostName != "defiant") "defiant")
|
||||||
path = "${mountDir}/leyla/documents";
|
(lib.mkIf (config.networking.hostName != "twilight") "twilight")
|
||||||
devices = ["ceder" "coven"];
|
(lib.mkIf (config.networking.hostName != "horizon") "horizon")
|
||||||
};
|
];
|
||||||
})
|
in
|
||||||
(lib.mkIf config.host.sync.folders.leyla.calendar.enable {
|
lib.mkMerge [
|
||||||
"calendar" = {
|
config.host.sync.folders.extraFolders
|
||||||
id = "8oatl-1rv6w";
|
(lib.mkIf config.host.sync.folders.leyla.documents.enable {
|
||||||
path = "${mountDir}/leyla/calendar";
|
"documents" = {
|
||||||
devices = ["ceder" "coven"];
|
id = "hvrj0-9bm1p";
|
||||||
};
|
path = "${mountDir}/leyla/documents";
|
||||||
})
|
devices = allDevices;
|
||||||
(lib.mkIf config.host.sync.folders.leyla.notes.enable {
|
};
|
||||||
"notes" = {
|
})
|
||||||
id = "dwbuv-zffnf";
|
(lib.mkIf config.host.sync.folders.leyla.calendar.enable {
|
||||||
path = "${mountDir}/leyla/notes";
|
"calendar" = {
|
||||||
devices = ["ceder" "coven"];
|
id = "8oatl-1rv6w";
|
||||||
};
|
path = "${mountDir}/leyla/calendar";
|
||||||
})
|
devices = allDevices;
|
||||||
];
|
};
|
||||||
|
})
|
||||||
|
(lib.mkIf config.host.sync.folders.leyla.notes.enable {
|
||||||
|
"notes" = {
|
||||||
|
id = "dwbuv-zffnf";
|
||||||
|
path = "${mountDir}/leyla/notes";
|
||||||
|
devices = allDevices;
|
||||||
|
};
|
||||||
|
})
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue