From 44240a38d7dabd7d64606f2e024e8d2e491e7306 Mon Sep 17 00:00:00 2001 From: Rouven Seifert Date: Fri, 19 Apr 2024 11:33:54 +0200 Subject: [PATCH] nuc: configure static IP --- hosts/nuc/modules/networks/default.nix | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/nuc/modules/networks/default.nix b/hosts/nuc/modules/networks/default.nix index 01fc538..c547460 100644 --- a/hosts/nuc/modules/networks/default.nix +++ b/hosts/nuc/modules/networks/default.nix @@ -29,8 +29,12 @@ }; networks."10-wired" = { matchConfig.Name = "eno1"; + address = [ "192.168.42.2/24" ]; + routes = [{ + routeConfig.Gateway = "192.168.42.1"; + }]; networkConfig = { - DHCP = "yes"; + DNS = "192.168.42.1"; LLDP = true; EmitLLDP = "nearest-bridge"; DNSSEC = false;