fix routing and DHCP
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
b2ce2fe645
commit
1338117410
@ -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 = {
|
||||
|
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user