vdirsyncer module
This commit is contained in:
		
							parent
							
								
									55842e8952
								
							
						
					
					
						commit
						a422180aed
					
				
							
								
								
									
										21
									
								
								profiles/sync/cal/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										21
									
								
								profiles/sync/cal/default.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,21 @@ | |||
| { pkgs, ... }: | ||||
| 
 | ||||
| { | ||||
|   systemd.services.vdir-sync = { | ||||
|     serviceConfig.Type = "oneshot"; | ||||
|     path = [ | ||||
|       pkgs.vdirsyncer | ||||
|     ]; | ||||
|     script = '' | ||||
|       vdirsyncer sync | ||||
|     ''; | ||||
|     serviceConfig = { | ||||
|       User = "anish"; | ||||
|     }; | ||||
|   }; | ||||
|   systemd.timers.vdir-sync = { | ||||
|     wantedBy = [ "timers.target" ]; | ||||
|     partOf = [ "vdir-sync.service" ]; | ||||
|     timerConfig.OnCalendar = [ "hourly" ]; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
		Reference in a new issue