forked from jan-leila/nix-config
		
	added extra tailscale config
This commit is contained in:
		
							parent
							
								
									6c6f9a11bc
								
							
						
					
					
						commit
						186dd689eb
					
				
					 3 changed files with 17 additions and 3 deletions
				
			
		|  | @ -177,13 +177,15 @@ | ||||||
|       useRoutingFeatures = "server"; |       useRoutingFeatures = "server"; | ||||||
|       extraUpFlags = [ |       extraUpFlags = [ | ||||||
|         "--advertise-exit-node" |         "--advertise-exit-node" | ||||||
|         "--advertise-routes=192.168.1.0/24" |         "--advertise-routes=192.168.0.0/24" | ||||||
|         "--accept-dns=false" |         "--accept-dns=false" | ||||||
|  |         "--advertise-tags=tag:leyla,tag:server,tag:static" | ||||||
|       ]; |       ]; | ||||||
|       extraSetFlags = [ |       extraSetFlags = [ | ||||||
|         "--advertise-exit-node" |         "--advertise-exit-node" | ||||||
|         "--advertise-routes=192.168.1.0/24" |         "--advertise-routes=192.168.0.0/24" | ||||||
|         "--accept-dns=false" |         "--accept-dns=false" | ||||||
|  |         "--advertise-tags=tag:leyla,tag:server,tag:static" | ||||||
|       ]; |       ]; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
|  | @ -62,6 +62,12 @@ | ||||||
|       enable = true; |       enable = true; | ||||||
|       authKeyFile = config.sops.secrets."wireguard-keys/tailscale-authkey/horizon".path; |       authKeyFile = config.sops.secrets."wireguard-keys/tailscale-authkey/horizon".path; | ||||||
|       useRoutingFeatures = "client"; |       useRoutingFeatures = "client"; | ||||||
|  |       extraUpFlags = [ | ||||||
|  |         "--advertise-tags=tag:leyla,tag:server,tag:static" | ||||||
|  |       ]; | ||||||
|  |       extraSetFlags = [ | ||||||
|  |         "--advertise-tags=tag:leyla,tag:server,tag:static" | ||||||
|  |       ]; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|  |  | ||||||
|  | @ -55,9 +55,15 @@ | ||||||
|       enable = true; |       enable = true; | ||||||
|       authKeyFile = config.sops.secrets."wireguard-keys/tailscale-authkey/twilight".path; |       authKeyFile = config.sops.secrets."wireguard-keys/tailscale-authkey/twilight".path; | ||||||
|       useRoutingFeatures = "both"; |       useRoutingFeatures = "both"; | ||||||
|       extraUpFlags = ["--advertise-exit-node"]; |       extraUpFlags = [ | ||||||
|  |         "--advertise-exit-node" | ||||||
|  |         "--advertise-routes=192.168.0.0/24" | ||||||
|  |         "--advertise-tags=tag:leyla,tag:server,tag:static" | ||||||
|  |       ]; | ||||||
|       extraSetFlags = [ |       extraSetFlags = [ | ||||||
|         "--advertise-exit-node" |         "--advertise-exit-node" | ||||||
|  |         "--advertise-routes=192.168.0.0/24" | ||||||
|  |         "--advertise-tags=tag:leyla,tag:server,tag:static" | ||||||
|       ]; |       ]; | ||||||
|     }; |     }; | ||||||
|   }; |   }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue