From 6804112df6e0aa73c05526d4c864c633e2ff75b2 Mon Sep 17 00:00:00 2001 From: SebastianStork Date: Sun, 11 Jan 2026 14:34:53 +0100 Subject: [PATCH] Disable any ipv6 functionality --- hosts/desktop/hardware.nix | 5 +---- hosts/vps-monitor/hardware.nix | 21 ++++++--------------- hosts/vps-private/hardware.nix | 21 ++++++--------------- hosts/vps-public/hardware.nix | 21 ++++++--------------- 4 files changed, 19 insertions(+), 49 deletions(-) diff --git a/hosts/desktop/hardware.nix b/hosts/desktop/hardware.nix index 2bdfbb1..fb9e490 100644 --- a/hosts/desktop/hardware.nix +++ b/hosts/desktop/hardware.nix @@ -38,10 +38,7 @@ _: { enable = true; networks."10-enp6s0" = { matchConfig.Name = "enp6s0"; - networkConfig = { - DHCP = "ipv4"; - IPv6AcceptRA = true; - }; + networkConfig.DHCP = "ipv4"; linkConfig.RequiredForOnline = "routable"; }; }; diff --git a/hosts/vps-monitor/hardware.nix b/hosts/vps-monitor/hardware.nix index f81d6d1..29c26de 100644 --- a/hosts/vps-monitor/hardware.nix +++ b/hosts/vps-monitor/hardware.nix @@ -1,4 +1,4 @@ -{ modulesPath, ... }: +{ modulesPath, lib, ... }: { imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; @@ -21,23 +21,14 @@ networks."10-enp1s0" = { matchConfig.Name = "enp1s0"; linkConfig.RequiredForOnline = "routable"; - networkConfig.DHCP = "no"; - address = [ - "188.245.223.145/32" - "2a01:4f8:1c1b:468f::1/64" - ]; - routes = [ - { - Gateway = "172.31.1.1"; - GatewayOnLink = true; - } - { Gateway = "fe80::1"; } - ]; + address = [ "188.245.223.145/32" ]; + routes = lib.singleton { + Gateway = "172.31.1.1"; + GatewayOnLink = true; + }; dns = [ "1.1.1.1" "8.8.8.8" - "2606:4700:4700::1111" - "2001:4860:4860::8888" ]; }; }; diff --git a/hosts/vps-private/hardware.nix b/hosts/vps-private/hardware.nix index e010835..c178dc2 100644 --- a/hosts/vps-private/hardware.nix +++ b/hosts/vps-private/hardware.nix @@ -1,4 +1,4 @@ -{ modulesPath, ... }: +{ modulesPath, lib, ... }: { imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; @@ -21,23 +21,14 @@ networks."10-enp1s0" = { matchConfig.Name = "enp1s0"; linkConfig.RequiredForOnline = "routable"; - networkConfig.DHCP = "no"; - address = [ - "49.13.231.235/32" - "2a01:4f8:1c1e:76fe::1/64" - ]; - routes = [ - { - Gateway = "172.31.1.1"; - GatewayOnLink = true; - } - { Gateway = "fe80::1"; } - ]; + address = [ "49.13.231.235/32" ]; + routes = lib.singleton { + Gateway = "172.31.1.1"; + GatewayOnLink = true; + }; dns = [ "1.1.1.1" "8.8.8.8" - "2606:4700:4700::1111" - "2001:4860:4860::8888" ]; }; }; diff --git a/hosts/vps-public/hardware.nix b/hosts/vps-public/hardware.nix index 5a8d950..1b5e794 100644 --- a/hosts/vps-public/hardware.nix +++ b/hosts/vps-public/hardware.nix @@ -1,4 +1,4 @@ -{ modulesPath, ... }: +{ modulesPath, lib, ... }: { imports = [ "${modulesPath}/profiles/qemu-guest.nix" ]; @@ -21,23 +21,14 @@ networks."10-enp1s0" = { matchConfig.Name = "enp1s0"; linkConfig.RequiredForOnline = "routable"; - networkConfig.DHCP = "no"; - address = [ - "167.235.73.246/32" - "2a01:4f8:c0c:3baf::1/64" - ]; - routes = [ - { - Gateway = "172.31.1.1"; - GatewayOnLink = true; - } - { Gateway = "fe80::1"; } - ]; + address = [ "167.235.73.246/32" ]; + routes = lib.singleton { + Gateway = "172.31.1.1"; + GatewayOnLink = true; + }; dns = [ "1.1.1.1" "8.8.8.8" - "2606:4700:4700::1111" - "2001:4860:4860::8888" ]; }; };