forked from jan-leila/nix-config
		
	updated network config for defiant
This commit is contained in:
		
							parent
							
								
									4dc7fa293c
								
							
						
					
					
						commit
						c4a7c711fb
					
				
					 2 changed files with 9 additions and 32 deletions
				
			
		|  | @ -87,13 +87,6 @@ | ||||||
|         }; |         }; | ||||||
|       }; |       }; | ||||||
|     }; |     }; | ||||||
|     # podman = { |  | ||||||
|     #   macvlan = { |  | ||||||
|     #     subnet = "192.168.1.0/24"; |  | ||||||
|     #     gateway = "192.168.1.1"; |  | ||||||
|     #     networkInterface = "bond0"; |  | ||||||
|     #   }; |  | ||||||
|     # }; |  | ||||||
|     jellyfin = { |     jellyfin = { | ||||||
|       enable = true; |       enable = true; | ||||||
|       subdomain = "media"; |       subdomain = "media"; | ||||||
|  | @ -113,7 +106,6 @@ | ||||||
|     }; |     }; | ||||||
|     pihole = { |     pihole = { | ||||||
|       enable = true; |       enable = true; | ||||||
|       # ip = "192.168.1.201"; |  | ||||||
|     }; |     }; | ||||||
|     nextcloud = { |     nextcloud = { | ||||||
|       enable = true; |       enable = true; | ||||||
|  |  | ||||||
|  | @ -35,12 +35,6 @@ | ||||||
|   networking = { |   networking = { | ||||||
|     hostName = "defiant"; # Define your hostname. |     hostName = "defiant"; # Define your hostname. | ||||||
|     useNetworkd = true; |     useNetworkd = true; | ||||||
|     interfaces = { |  | ||||||
|       bond0.useDHCP = lib.mkDefault true; |  | ||||||
|       bonding_masters.useDHCP = lib.mkDefault true; |  | ||||||
|       enol.useDHCP = lib.mkDefault true; |  | ||||||
|       eno2.useDHCP = lib.mkDefault true; |  | ||||||
|     }; |  | ||||||
|   }; |   }; | ||||||
| 
 | 
 | ||||||
|   systemd.network = { |   systemd.network = { | ||||||
|  | @ -60,33 +54,24 @@ | ||||||
|     }; |     }; | ||||||
| 
 | 
 | ||||||
|     networks = { |     networks = { | ||||||
|       "30-enp4s0" = { |       "30-eno1" = { | ||||||
|         matchConfig.Name = "enp4s0"; |         matchConfig.Name = "eno1"; | ||||||
|         networkConfig.Bond = "bond0"; |         networkConfig.Bond = "bond0"; | ||||||
| 
 |  | ||||||
|         address = [ |  | ||||||
|           # configure addresses including subnet mask |  | ||||||
|           "192.168.2.1/24" |  | ||||||
|         ]; |  | ||||||
|       }; |       }; | ||||||
|       "30-enp5s0" = { |       "30-eno2" = { | ||||||
|         matchConfig.Name = "enp5s0"; |         matchConfig.Name = "eno2"; | ||||||
|         networkConfig.Bond = "bond0"; |         networkConfig.Bond = "bond0"; | ||||||
| 
 |  | ||||||
|         address = [ |  | ||||||
|           # configure addresses including subnet mask |  | ||||||
|           "192.168.2.2/24" |  | ||||||
|         ]; |  | ||||||
|       }; |       }; | ||||||
| 
 | 
 | ||||||
|       "40-bond0" = { |       "40-bond0" = { | ||||||
|         matchConfig.Name = "bond0"; |         matchConfig.Name = "bond0"; | ||||||
|         linkConfig.RequiredForOnline = "carrier"; |         linkConfig = { | ||||||
|         networkConfig.LinkLocalAddressing = "no"; |           RequiredForOnline = "degraded-carrier"; | ||||||
|         DHCP = "ipv4"; |           RequiredFamilyForOnline = "any"; | ||||||
|  |         }; | ||||||
|  |         networkConfig.DHCP = "yes"; | ||||||
| 
 | 
 | ||||||
|         address = [ |         address = [ | ||||||
|           # configure addresses including subnet mask |  | ||||||
|           "192.168.1.10/24" |           "192.168.1.10/24" | ||||||
|         ]; |         ]; | ||||||
|       }; |       }; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue