From 08c6cd650be992ba68985f804de429711ac09187 Mon Sep 17 00:00:00 2001 From: Dmitry Voronin Date: Thu, 28 Nov 2024 22:08:16 +0300 Subject: [PATCH] Dasha: Add network config. --- host/x86_64-linux/dasha/Network.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 host/x86_64-linux/dasha/Network.nix diff --git a/host/x86_64-linux/dasha/Network.nix b/host/x86_64-linux/dasha/Network.nix new file mode 100644 index 0000000..cddfeae --- /dev/null +++ b/host/x86_64-linux/dasha/Network.nix @@ -0,0 +1,20 @@ +{ ... }: { + systemd.network = { + networks = { + "10-lan" = { + matchConfig.Name = "enp5s0"; + linkConfig.RequiredForOnline = "routable"; + networkConfig = { + DHCP = "ipv4"; + IPv6AcceptRA = true; + }; + address = [ + "10.0.0.7/24" + ]; + routes = [ + { routeConfig.Gateway = "10.0.0.1"; } + ]; + }; + }; + }; +}