From 833c173aff55b2c9adb95f0968218a58057c7a73 Mon Sep 17 00:00:00 2001 From: jopejoe1 Date: Thu, 18 Jan 2024 22:50:10 +0100 Subject: [PATCH] more hetzner impreovments --- systems/hetzner/default.nix | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/systems/hetzner/default.nix b/systems/hetzner/default.nix index 60ddd94..4da38da 100644 --- a/systems/hetzner/default.nix +++ b/systems/hetzner/default.nix @@ -22,8 +22,23 @@ }; - networking = { - wireless.enable = lib.mkForce false; + networking.usePredictableInterfaceNames = false; + networking.dhcpcd.enable = false; + systemd.network = { + enable = true; + networks."eth0" = { + extraConfig = '' + [Match] + Name = eth0 + [Network] + # Add your own assigned ipv6 subnet here here! + Address = 2a01:4f8:a0:31e5::/64 + Gateway = fe80::1 + # optionally you can do the same for ipv4 and disable DHCP (networking.dhcpcd.enable = false;) + Address = 85.10.200.204 + Gateway = 85.10.200.193 + ''; + }; }; time.timeZone = "Europe/Berlin";