forked from fabian/nix
		
	update syncthing module
This commit is contained in:
		
							parent
							
								
									d26ff604e6
								
							
						
					
					
						commit
						8ecb978605
					
				
					 1 changed files with 18 additions and 0 deletions
				
			
		|  | @ -21,4 +21,22 @@ with lib; { | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  | 
 | ||||||
|  |   # calibre web stuff. make this better someday, this is pure duct-tape | ||||||
|  |   users.groups."calybresync".members = ["syncthing" "calibre-web"]; | ||||||
|  |   systemd = { | ||||||
|  |     services."calybreown" = { | ||||||
|  |       script = '' | ||||||
|  |         chgrp -R calybresync /var/lib/calibre-web/calibre_library | ||||||
|  |         chmod -R g+w /var/lib/calibre-web/calibre_library | ||||||
|  |       ''; | ||||||
|  |       serviceConfig.Type = "oneshot"; | ||||||
|  |     }; | ||||||
|  |     timers."calybreown" = { | ||||||
|  |       wantedBy = [ | ||||||
|  |         "timers.target" | ||||||
|  |       ]; | ||||||
|  |       timerConfig.OnCalendar = "*-*-* *:00/30:00"; | ||||||
|  |     }; | ||||||
|  |   }; | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue