From 1338117410839c6260d787df3cc4c2c9c2658b65 Mon Sep 17 00:00:00 2001 From: ahuston-0 Date: Tue, 28 May 2024 23:19:01 -0400 Subject: [PATCH] fix routing and DHCP Signed-off-by: ahuston-0 --- systems/palatine-hill/hardware.nix | 1 - systems/palatine-hill/networking.nix | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/systems/palatine-hill/hardware.nix b/systems/palatine-hill/hardware.nix index 20b1f15..ffcd1f1 100644 --- a/systems/palatine-hill/hardware.nix +++ b/systems/palatine-hill/hardware.nix @@ -8,7 +8,6 @@ imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; - networking.useDHCP = lib.mkDefault true; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; swapDevices = [ { device = "/dev/disk/by-uuid/2b01e592-2297-4eb1-854b-17a63f1d4cf6"; } ]; boot = { diff --git a/systems/palatine-hill/networking.nix b/systems/palatine-hill/networking.nix index 791adb0..d50bc32 100644 --- a/systems/palatine-hill/networking.nix +++ b/systems/palatine-hill/networking.nix @@ -18,7 +18,7 @@ # enable DHCP for primary ethernet adapter "10-lan" = { matchConfig.Name = "eno1"; - address = [ "192.168.76.2/32" ]; + address = [ "192.168.76.2/24" ]; routes = [ { routeConfig.Gateway = "192.168.76.1"; } ]; networkConfig.IPForward = "yes"; linkConfig.RequiredForOnline = "routable";