summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGrigory Shipunov2023-04-03 22:32:14 +0200
committerGrigory Shipunov2023-04-03 22:32:14 +0200
commit08bcc74f0c177280b49201d5954263a091befe67 (patch)
tree9f1d9f3c9ef35861bf0290618d10a40cffc3f16a
parent596d36f365cc1c78690df66b439e2d64fbd6f4cf (diff)
wired is back
-rw-r--r--hosts/dishwasher/configuration.nix20
-rw-r--r--hosts/dishwasher/mcvm-network.nix2
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" ];
};