From 08bcc74f0c177280b49201d5954263a091befe67 Mon Sep 17 00:00:00 2001 From: Grigory Shipunov Date: Mon, 3 Apr 2023 22:32:14 +0200 Subject: [PATCH] wired is back --- hosts/dishwasher/configuration.nix | 20 +++++++++----------- hosts/dishwasher/mcvm-network.nix | 2 +- 2 files changed, 10 insertions(+), 12 deletions(-) diff --git a/hosts/dishwasher/configuration.nix b/hosts/dishwasher/configuration.nix index 4670b82..7d7009a 100644 --- a/hosts/dishwasher/configuration.nix +++ b/hosts/dishwasher/configuration.nix @@ -21,7 +21,6 @@ hostName = "dishwasher"; # Define your hostname. useNetworkd = true; firewall.enable = true; - wireless.iwd.enable = true; }; time.timeZone = "Europe/Amsterdam"; @@ -41,17 +40,16 @@ Name = "enp1s0"; }; networkConfig = { - # DHCP = "yes"; - # LinkLocalAddressing = "ipv6"; - # IPv6AcceptRA = "yes"; - Address = "10.1.1.50/24"; + DHCP = "yes"; + LinkLocalAddressing = "ipv6"; + IPv6AcceptRA = "yes"; + }; + dhcpV6Config = { + WithoutRA = "solicit"; + }; + ipv6AcceptRAConfig = { + DHCPv6Client = "yes"; }; - # dhcpV6Config = { - # WithoutRA = "solicit"; - # }; - # ipv6AcceptRAConfig = { - # DHCPv6Client = "yes"; - # }; }; networks."aer" = { matchConfig.Name = "wlan0"; diff --git a/hosts/dishwasher/mcvm-network.nix b/hosts/dishwasher/mcvm-network.nix index 73894f8..22114b3 100644 --- a/hosts/dishwasher/mcvm-network.nix +++ b/hosts/dishwasher/mcvm-network.nix @@ -45,7 +45,7 @@ networking.nat = { enable = true; enableIPv6 = true; - externalInterface = "wlan0"; + externalInterface = "enp1s0"; internalInterfaces = [ "microvm-bridge" ]; };