vps: add syncthing
This commit is contained in:
		
							parent
							
								
									8c2e1b74ef
								
							
						
					
					
						commit
						4e63a64248
					
				
					 3 changed files with 28 additions and 1 deletions
				
			
		|  | @ -24,7 +24,10 @@ with lib; { | |||
|     }; | ||||
|   }; | ||||
| 
 | ||||
|   networking.hostName = "vps"; | ||||
|   networking = { | ||||
|     hostName = "vps"; | ||||
|     domain = "posixlycorrect.com"; | ||||
|   }; | ||||
| 
 | ||||
|   services.openssh = { | ||||
|     settings.PasswordAuthentication = false; | ||||
|  |  | |||
|  | @ -21,5 +21,6 @@ with lib; { | |||
|     ./trilium.nix | ||||
|     # ./firefly.nix gnucash is better | ||||
|     ./roundcube.nix | ||||
|     ./syncthing.nix | ||||
|   ]; | ||||
| } | ||||
|  |  | |||
							
								
								
									
										23
									
								
								sys/platforms/vps/srv/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										23
									
								
								sys/platforms/vps/srv/syncthing.nix
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,23 @@ | |||
| { | ||||
|   lib, | ||||
|   pkgs, | ||||
|   ... | ||||
| }: | ||||
| with lib; { | ||||
|   services = { | ||||
|     syncthing = { | ||||
|       enable = true; | ||||
|       systemService = true; | ||||
|       overrideFolders = false; | ||||
|       overrideDevices = false; | ||||
|       openDefaultPorts = true; | ||||
|       guiAddress = "127.0.0.1:8384"; | ||||
|       settings.options.urAccepted = -1; | ||||
|       relay = { | ||||
|         enable = true; | ||||
|         pools = [ ]; | ||||
|         providedBy = "vps.posixlycorrect.com"; | ||||
|       }; | ||||
|     }; | ||||
|   }; | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue