diff --git a/host/x86_64-linux/desktop/Network.nix b/host/x86_64-linux/desktop/Network.nix new file mode 100644 index 00000000..0516d970 --- /dev/null +++ b/host/x86_64-linux/desktop/Network.nix @@ -0,0 +1,20 @@ +{ ... }: { + systemd.network = { + networks = { + "10-lan" = { + matchConfig.Name = "enp4s0"; + linkConfig.RequiredForOnline = "routable"; + networkConfig = { + DHCP = "ipv4"; + IPv6AcceptRA = true; + }; + address = [ + "10.0.0.3/24" + ]; + routes = [ + { routeConfig.Gateway = "10.0.0.1"; } + ]; + }; + }; + }; +}