commit 253759571e73b0660f2b41057a90b744c670613a parent 938d1d341dea81e2e7bf4bfbabc45fcf1cf43cdd Author: MTRNord <mtrnord1@gmail.com> Date: Sun, 28 Jan 2024 15:36:09 +0100 Working on opnsense Diffstat:
| M | nixos/worker-2/configuration.nix | | | 43 | ++++++------------------------------------- |
1 file changed, 6 insertions(+), 37 deletions(-)
diff --git a/nixos/worker-2/configuration.nix b/nixos/worker-2/configuration.nix @@ -107,48 +107,17 @@ in { # Broken systemd.network.wait-online.enable = false; systemd.network = { - netdevs = { - gre_nord = { - enable = true; - netdevConfig = { - Kind = "geneve"; - Name = "gre_nord"; - }; - extraConfig = '' - [GENEVE] - Id=2 - Remote=10.0.1.2 - ''; - }; - gre_worker1 = { - enable = true; - netdevConfig = { - Kind = "geneve"; - Name = "gre_worker1"; - }; - extraConfig = '' - [GENEVE] - Id=3 - Remote=10.0.2.1 - ''; - }; - }; networks = { - gre_nord = { - address = [ - "10.0.3.3/24" - ]; + "99-enp7s0" = { matchConfig = { - Name = "gre_nord"; + Name = "enp7s0"; }; - }; - gre_worker1 = { address = [ - "10.0.3.3/24" + "10.0.0.3/24" + ]; + gateway = [ + "10.0.0.2" ]; - matchConfig = { - Name = "gre_worker1"; - }; }; "20-v6" = { matchConfig = {