add seafile
keep trying syncthing backup syncthing
This commit is contained in:
		
							parent
							
								
									0b15a58e57
								
							
						
					
					
						commit
						4a7e9d536b
					
				|  | @ -127,7 +127,7 @@ | ||||||
|             suites = with profiles; rec { |             suites = with profiles; rec { | ||||||
|               base = [ core users.root users.anish ]; |               base = [ core users.root users.anish ]; | ||||||
|               sealight = [ base server ]; # matrix rsshub backup wireguard-server |               sealight = [ base server ]; # matrix rsshub backup wireguard-server | ||||||
|               mossnet = [ base server taskd shaarli wallabag dns monitoring nfs rss-bridge gonic headphones radicale syncthing ]; # hpi sync.music |               mossnet = [ base server taskd shaarli wallabag dns monitoring nfs rss-bridge gonic headphones radicale seafile syncthing ]; # hpi syncthing sync.music | ||||||
|               cube = [ base site server ]; |               cube = [ base site server ]; | ||||||
|               graphical = [ base bluetooth music sync.kitaab sync.website sync.cal wifi desktop ]; # syncthing |               graphical = [ base bluetooth music sync.kitaab sync.website sync.cal wifi desktop ]; # syncthing | ||||||
|               curve = [ graphical secrets ]; |               curve = [ graphical secrets ]; | ||||||
|  |  | ||||||
|  | @ -28,6 +28,7 @@ | ||||||
|       "/var/www/shaarli-config" # sharli |       "/var/www/shaarli-config" # sharli | ||||||
|       "/var/backup/postgresql" # wallabag |       "/var/backup/postgresql" # wallabag | ||||||
|       "/var/lib/radicale" # radicale |       "/var/lib/radicale" # radicale | ||||||
|  |       "/home/anish/usr/syncthing" # syncthing | ||||||
|     ]; |     ]; | ||||||
|     # seafile? |     # seafile? | ||||||
|     # syncthing |     # syncthing | ||||||
|  |  | ||||||
							
								
								
									
										13
									
								
								profiles/seafile/default.nix
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										13
									
								
								profiles/seafile/default.nix
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,13 @@ | ||||||
|  | { pkgs, ... }: | ||||||
|  | 
 | ||||||
|  | { | ||||||
|  |   services.seafile = { | ||||||
|  |     enable = true; | ||||||
|  |     seafileSettings = { | ||||||
|  |       fileserver.host = "0.0.0.0"; | ||||||
|  |       fileserver.port = 8082; | ||||||
|  |     }; | ||||||
|  |     ccnetSettings.General.SERVICE_URL = "file.mossnet.lan"; | ||||||
|  |     initialAdminPassword = "arandompasswordsecure!"; | ||||||
|  |   }; | ||||||
|  | } | ||||||
|  | @ -4,16 +4,11 @@ | ||||||
|   services.syncthing = { |   services.syncthing = { | ||||||
|     enable = true; |     enable = true; | ||||||
|     user = "anish"; |     user = "anish"; | ||||||
|     dataDir = "/home/anish/usr/syncthing"; |     group = "users"; | ||||||
|  |     dataDir = "/home/anish/"; | ||||||
|  |     configDir = "/home/anish/.config/syncthing"; | ||||||
|     guiAddress = "0.0.0.0:8384"; |     guiAddress = "0.0.0.0:8384"; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   mossnet.backup = { |  | ||||||
|     enable = true; |  | ||||||
|     name = "syncthing"; |  | ||||||
|     paths = [ "/home/anish/usr/syncthing" ]; |  | ||||||
|   }; |  | ||||||
| 
 |  | ||||||
|   networking.firewall.allowedTCPPorts = [ 8384 22000 ]; |   networking.firewall.allowedTCPPorts = [ 8384 22000 ]; | ||||||
|   networking.firewall.allowedUDPPorts = [ 22000 21027 ]; |  | ||||||
| } | } | ||||||
|  |  | ||||||
		Loading…
	
		Reference in a new issue