From 56c22cf8ae9de73bbc1c37ce0b1635ae7af9be64 Mon Sep 17 00:00:00 2001 From: Mel Date: Fri, 24 Apr 2026 23:35:19 +0200 Subject: Migrate fully to systemd-networkd and nftables Signed-off-by: Mel --- machines/truite/devices.nix | 20 ++++++-------------- 1 file changed, 6 insertions(+), 14 deletions(-) (limited to 'machines/truite') diff --git a/machines/truite/devices.nix b/machines/truite/devices.nix index bc432c1..cdc3982 100644 --- a/machines/truite/devices.nix +++ b/machines/truite/devices.nix @@ -17,21 +17,13 @@ memoryPercent = 50; }; - networking = { - nameservers = [ "1.1.1.1" "1.0.0.1" ]; - useDHCP = false; - }; - - systemd.network = { - enable = true; - networks."10-wan" = { - name = "ens18"; + systemd.network.networks."10-wan" = { + name = "ens18"; - address = [ "194.87.197.92/23" "2a00:b700:5::3:1cb/118" ]; - gateway = [ "194.87.196.1" ]; - routes = [ { Gateway = "2a00:b700:5::1"; GatewayOnLink = true; } ]; - DHCP = "no"; - }; + address = [ "194.87.197.92/23" "2a00:b700:5::3:1cb/118" ]; + gateway = [ "194.87.196.1" ]; + routes = [ { Gateway = "2a00:b700:5::1"; GatewayOnLink = true; } ]; + DHCP = "no"; }; } -- cgit 1.4.1