set devices on folders
This commit is contained in:
		
							parent
							
								
									427a259632
								
							
						
					
					
						commit
						d2b43225ee
					
				
					 1 changed files with 33 additions and 24 deletions
				
			
		|  | @ -73,27 +73,36 @@ in { | |||
|                 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 | ||||
|                 (lib.mkIf config.host.sync.folders.leyla.documents.enable { | ||||
|                   "documents" = { | ||||
|                     id = "hvrj0-9bm1p"; | ||||
|                     path = "${mountDir}/leyla/documents"; | ||||
|                   devices = ["ceder" "coven"]; | ||||
|                     devices = allDevices; | ||||
|                   }; | ||||
|                 }) | ||||
|                 (lib.mkIf config.host.sync.folders.leyla.calendar.enable { | ||||
|                   "calendar" = { | ||||
|                     id = "8oatl-1rv6w"; | ||||
|                     path = "${mountDir}/leyla/calendar"; | ||||
|                   devices = ["ceder" "coven"]; | ||||
|                     devices = allDevices; | ||||
|                   }; | ||||
|                 }) | ||||
|                 (lib.mkIf config.host.sync.folders.leyla.notes.enable { | ||||
|                   "notes" = { | ||||
|                     id = "dwbuv-zffnf"; | ||||
|                     path = "${mountDir}/leyla/notes"; | ||||
|                   devices = ["ceder" "coven"]; | ||||
|                     devices = allDevices; | ||||
|                   }; | ||||
|                 }) | ||||
|               ]; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue