mirror of
				https://git.pvv.ntnu.no/Drift/pvv-nixos-config.git
				synced 2025-10-28 16:08:03 +01:00 
			
		
		
		
	greddost: static ip
This commit is contained in:
		
							parent
							
								
									7c8e9e0b93
								
							
						
					
					
						commit
						254e9934ad
					
				| @ -47,7 +47,26 @@ | ||||
| 
 | ||||
|   networking.hostName = "greddost"; # Define your hostname. | ||||
| 
 | ||||
|   networking.interfaces.ens18.useDHCP = true; | ||||
|   networking.interfaces.ens18.useDHCP = false; | ||||
| 
 | ||||
|   networking.defaultGateway = "129.241.210.129"; | ||||
|   networking.interfaces.ens18.ipv4 = { | ||||
|     addresses = [ | ||||
|       { | ||||
|         address = "129.241.210.174"; | ||||
|         prefixLength = 25; | ||||
|       } | ||||
|     ]; | ||||
|   }; | ||||
|   networking.interfaces.ens18.ipv6 = { | ||||
|     addresses = [ | ||||
|       { | ||||
|         address = "2001:700:300:1900::174"; | ||||
|         prefixLength = 64; | ||||
|       } | ||||
|     ]; | ||||
|   }; | ||||
|   networking.nameservers = [ "129.241.0.200" "129.241.0.201" ]; | ||||
| 
 | ||||
|   # Open ports in the firewall. | ||||
|   networking.firewall.allowedTCPPorts = [ 25565 ]; | ||||
|  | ||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 System administrator
							System administrator