mirror of
				https://github.com/Stunkymonkey/nixos.git
				synced 2025-10-31 17:52:10 +01:00 
			
		
		
		
	machines/syncthing: make sure folder exist
This commit is contained in:
		
							parent
							
								
									11f864458f
								
							
						
					
					
						commit
						5476b67957
					
				
					 2 changed files with 19 additions and 0 deletions
				
			
		|  | @ -3,6 +3,15 @@ | |||
|   sops.secrets."syncthing/key" = { }; | ||||
|   sops.secrets."syncthing/cert" = { }; | ||||
| 
 | ||||
|   # make sure folders exist writable | ||||
|   systemd.tmpfiles.rules = [ | ||||
|     "d /srv/data/ 0755 syncthing syncthing" | ||||
|     "d /srv/data/computer 0755 syncthing syncthing" | ||||
|     "d /srv/data/phone 0755 syncthing syncthing" | ||||
|     "d /srv/data/music 0755 syncthing syncthing" | ||||
|     "d /srv/data/photos 0755 syncthing syncthing" | ||||
|   ]; | ||||
| 
 | ||||
|   services.syncthing = { | ||||
|     enable = true; | ||||
|     openDefaultPorts = true; | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue