From cb5ae6a770ab60d5f85512437d8f1364ff413630 Mon Sep 17 00:00:00 2001 From: oqyude Date: Sun, 9 Nov 2025 18:27:46 +0300 Subject: [PATCH] 123 --- configurations/wsl.nix | 45 ++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 43 insertions(+), 2 deletions(-) diff --git a/configurations/wsl.nix b/configurations/wsl.nix index 89b36aa..5de36f7 100644 --- a/configurations/wsl.nix +++ b/configurations/wsl.nix @@ -37,8 +37,49 @@ let }; networking = { - firewall.enable = false; - hostName = xlib.device.hostname; + nameservers = [ + "1.1.1.1" + "8.8.8.8" + "2001:4860:4860::8844" + "2001:4860:4860::8888" + "2606:4700:4700::1111" + "2606:4700:4700::1001" + ]; + hostName = "${xlib.device.hostname}"; + networkmanager.enable = true; + tempAddresses = "disabled"; + dhcpcd = { + enable = true; + IPv6rs = true; + }; + firewall = { + enable = false; + allowPing = true; + }; + enableIPv6 = true; + # interfaces.ens3 = { + # useDHCP = true; + # # ipv4.addresses = [ + # # { + # # address = "31.57.158.109"; + # # prefixLength = 24; + # # } + # # ]; + # ipv6.addresses = [ + # { + # address = "2a13:7c00:10:6:f816:3eff:fe36:fe1b"; + # prefixLength = 64; + # } + # ]; + # }; + # # defaultGateway = { + # # address = "31.57.158.1"; + # # interface = "ens3"; + # # }; + # defaultGateway6 = { + # address = "2a13:7c00:10:6::1"; + # interface = "ens3"; + # }; }; wsl = {