From 972e627b5d120b743799e3b39286ac9c136a98f7 Mon Sep 17 00:00:00 2001 From: "Jill \"oatmealine\" Monoids" Date: Thu, 6 Jul 2023 21:43:00 +0200 Subject: [PATCH] ipv6 attempt --- hosts/lucent-firepit/default.nix | 42 +++++++++++++++----------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/hosts/lucent-firepit/default.nix b/hosts/lucent-firepit/default.nix index f8663c0..f2d8a9b 100644 --- a/hosts/lucent-firepit/default.nix +++ b/hosts/lucent-firepit/default.nix @@ -242,35 +242,33 @@ in { # https://nixos.org/manual/nixos/stable/options.html#opt-networking.enableB43Firmware # temporarily disabled - enableIPv6 = false; +# enableIPv6 = true; usePredictableInterfaceNames = false; - interfaces.eth0.ipv4.addresses = [ - { address = "46.4.96.113"; + interfaces.eth0 = { + ipv4.addresses = [{ + address = "46.4.96.113"; +# prefixLength = 27; prefixLength = 24; - } - ]; + }]; + +/* + ipv6.addresses = [{ + address = "2a01:4f8:140::1"; + prefixLength = 64; + }]; +*/ + }; defaultGateway = "46.4.96.97"; +/* + defaultGateway6 = { + address = "fe80::1"; + interface = "eth0"; + }; +*/ nameservers = [ "8.8.8.8" "1.1.1.1" ]; - #interfaces.eno1.ipv6.addresses = [ - # { address = "2001:41d0:0700:3308::"; - # prefixLength = 64; - # } - # - # { address = "2001:41d0:0700:33ff::"; - # prefixLength = 64; - # } - #]; - - #defaultGateway6 = { - # address = "2001:41d0:0700:33ff:00ff:00ff:00ff:00ff"; - # address = "33ff::1"; - # address = "2001::1"; - # interface = "eno1"; - #}; - firewall.allowPing = true; # minecraft proximity voice chat firewall.allowedTCPPorts = [ 24454 24464 25567 25577 4499 21025 ];