fix routing and DHCP

Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
ahuston-0 2024-05-28 23:19:01 -04:00 committed by Alice Huston
parent b2ce2fe645
commit 1338117410
2 changed files with 1 additions and 2 deletions

View File

@ -8,7 +8,6 @@
imports = [ (modulesPath + "/installer/scan/not-detected.nix") ]; imports = [ (modulesPath + "/installer/scan/not-detected.nix") ];
nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux"; nixpkgs.hostPlatform = lib.mkDefault "x86_64-linux";
networking.useDHCP = lib.mkDefault true;
hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware; hardware.cpu.amd.updateMicrocode = lib.mkDefault config.hardware.enableRedistributableFirmware;
swapDevices = [ { device = "/dev/disk/by-uuid/2b01e592-2297-4eb1-854b-17a63f1d4cf6"; } ]; swapDevices = [ { device = "/dev/disk/by-uuid/2b01e592-2297-4eb1-854b-17a63f1d4cf6"; } ];
boot = { boot = {

View File

@ -18,7 +18,7 @@
# enable DHCP for primary ethernet adapter # enable DHCP for primary ethernet adapter
"10-lan" = { "10-lan" = {
matchConfig.Name = "eno1"; matchConfig.Name = "eno1";
address = [ "192.168.76.2/32" ]; address = [ "192.168.76.2/24" ];
routes = [ { routeConfig.Gateway = "192.168.76.1"; } ]; routes = [ { routeConfig.Gateway = "192.168.76.1"; } ];
networkConfig.IPForward = "yes"; networkConfig.IPForward = "yes";
linkConfig.RequiredForOnline = "routable"; linkConfig.RequiredForOnline = "routable";