nixos

NixOS server files. Mirror from https://git.nordgedanken.dev/kubernetes/nixos
git clone git://archive.git.mtrnord.blog/MTRNord/nixos.git
Log | Files | Refs | README

commit 95a2044533b38c6604bbc9b3b3fc5ed65ea79723
parent 980353d6de0b060806cb9db283df0f1fe0164e9c
Author: MTRNord <mtrnord1@gmail.com>
Date:   Sun, 28 Jan 2024 01:23:20 +0100

Debug

Diffstat:
Mnixos/worker-1/configuration.nix | 54++----------------------------------------------------
Mnixos/worker-2/configuration.nix | 58++--------------------------------------------------------
2 files changed, 4 insertions(+), 108 deletions(-)

diff --git a/nixos/worker-1/configuration.nix b/nixos/worker-1/configuration.nix @@ -170,20 +170,6 @@ in { }; }; "99-enp7s0" = { - address = [ - "10.0.2.1/32" - ]; - gateway = [ - "10.0.0.1" - ]; - routes = [ - { - routeConfig = { - Gateway = "10.0.0.1"; - Destination = "10.0.0.0/16"; - }; - } - ]; tunnel = [ "gre_worker2" "gre_nordgedanken" @@ -191,45 +177,9 @@ in { matchConfig = { Name = "enp7s0"; }; - }; - "99-enp1s0" = { - matchConfig = { - #MACAddress = "96:00:02:44:cf:52"; - Name = "enp1s0"; + networkConfig = { + DHCP = "yes"; }; - address = [ - "49.13.24.105/32" - "2a01:4f8:c012:492::1/64" - ]; - gateway = [ - "fe80::1" - ]; - routes = [ - {routeConfig.Gateway = "fe80::1";} - { - routeConfig = { - Gateway = "172.31.1.1"; - GatewayOnLink = true; - }; - } - - # prevent some local traffic Hetzner doesn't like - #{ routeConfig = { Destination = "172.16.0.0/12"; Type = "unreachable"; }; } - { - routeConfig = { - Destination = "192.168.0.0/16"; - Type = "unreachable"; - }; - } - - # { routeConfig = { Destination = "10.0.0.0/8"; Type = "unreachable"; }; } - { - routeConfig = { - Destination = "fc00::/7"; - Type = "unreachable"; - }; - } - ]; }; }; }; diff --git a/nixos/worker-2/configuration.nix b/nixos/worker-2/configuration.nix @@ -149,20 +149,6 @@ in { }; }; "99-enp7s0" = { - address = [ - "10.0.2.2/32" - ]; - gateway = [ - "10.0.0.1" - ]; - routes = [ - { - routeConfig = { - Gateway = "10.0.0.1"; - Destination = "10.0.0.0/16"; - }; - } - ]; tunnel = [ "gre_nordgedanken" "gre_worker1" @@ -170,49 +156,9 @@ in { matchConfig = { Name = "enp7s0"; }; - }; - "99-enp1s0" = { - address = [ - "37.27.5.79/32" - "2a01:4f9:c012:54d3::/64" - ]; - matchConfig = { - #MACAddress = "96:00:02:97:a7:51"; - Name = "enp1s0"; + networkConfig = { + DHCP = "yes"; }; - gateway = [ - "fe80::1" - ]; - routes = [ - { - routeConfig = { - Gateway = "fe80::1"; - }; - } - { - routeConfig = { - Gateway = "172.31.1.1"; - GatewayOnLink = true; - }; - } - - # prevent some local traffic Hetzner doesn't like - #{ routeConfig = { Destination = "172.16.0.0/12"; Type = "unreachable"; }; } - { - routeConfig = { - Destination = "192.168.0.0/16"; - Type = "unreachable"; - }; - } - - # { routeConfig = { Destination = "10.0.0.0/8"; Type = "unreachable"; }; } - { - routeConfig = { - Destination = "fc00::/7"; - Type = "unreachable"; - }; - } - ]; }; }; };