Remove host specific network options from net.nix
This commit is contained in:
		
							parent
							
								
									51a77b5213
								
							
						
					
					
						commit
						a476b1758b
					
				| @ -16,6 +16,18 @@ | |||||||
|   # Select the this using the ID to avoid mismatches |   # Select the this using the ID to avoid mismatches | ||||||
|   boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN"; |   boot.loader.grub.device = "/dev/disk/by-id/ata-INTEL_SSDSC2BB240G7_PHDV6462004Y240AGN"; | ||||||
| 
 | 
 | ||||||
|  |   networking = { | ||||||
|  |     hostName = "xeon07"; | ||||||
|  |     interfaces.eno1.ipv4.addresses = [ { | ||||||
|  |       address = "10.0.40.7"; | ||||||
|  |       prefixLength = 24; | ||||||
|  |     } ]; | ||||||
|  |     interfaces.ibp5s0.ipv4.addresses = [ { | ||||||
|  |       address = "10.0.42.7"; | ||||||
|  |       prefixLength = 24; | ||||||
|  |     } ]; | ||||||
|  |   }; | ||||||
|  | 
 | ||||||
|   environment.systemPackages = with pkgs; [ |   environment.systemPackages = with pkgs; [ | ||||||
|     (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) |     (pkgs.callPackage <agenix/pkgs/agenix.nix> {}) | ||||||
|   ]; |   ]; | ||||||
|  | |||||||
| @ -6,22 +6,10 @@ | |||||||
|   boot.kernelModules = [ "ib_umad" "ib_ipoib" ]; |   boot.kernelModules = [ "ib_umad" "ib_ipoib" ]; | ||||||
| 
 | 
 | ||||||
|   networking = { |   networking = { | ||||||
|     hostName = "xeon07"; |  | ||||||
| 
 |  | ||||||
|     enableIPv6 = false; |     enableIPv6 = false; | ||||||
|     useDHCP = false; |     useDHCP = false; | ||||||
|     #defaultGateway = "10.0.40.30"; |     #defaultGateway = "10.0.40.30"; | ||||||
|     nameservers = ["8.8.8.8"]; |     nameservers = ["8.8.8.8"]; | ||||||
|     interfaces.eno1.ipv4.addresses = [ { |  | ||||||
|       address = "10.0.40.7"; |  | ||||||
|       prefixLength = 24; |  | ||||||
|     } ]; |  | ||||||
| 
 |  | ||||||
|     interfaces.ibp5s0.ipv4.addresses = [ { |  | ||||||
|       address = "10.0.42.7"; |  | ||||||
|       prefixLength = 24; |  | ||||||
|     } ]; |  | ||||||
| 
 |  | ||||||
|     proxy = { |     proxy = { | ||||||
|       default = "http://localhost:23080/"; |       default = "http://localhost:23080/"; | ||||||
|       noProxy = "127.0.0.1,localhost,internal.domain"; |       noProxy = "127.0.0.1,localhost,internal.domain"; | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user