From 1c858b10bd79eb63be74fc054c95fb04bf98e5b7 Mon Sep 17 00:00:00 2001 From: ulic-youthlic Date: Thu, 6 Mar 2025 04:47:50 +0800 Subject: [PATCH] enable DHCP protocol for eno2 --- nixos/configurations/Tytonidae/networking.nix | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/nixos/configurations/Tytonidae/networking.nix b/nixos/configurations/Tytonidae/networking.nix index 0d96497..aaae3bf 100644 --- a/nixos/configurations/Tytonidae/networking.nix +++ b/nixos/configurations/Tytonidae/networking.nix @@ -5,25 +5,25 @@ wait-online.enable = false; networks = { "eno2" = { - dns = [ - "192.168.31.1" - ]; - address = [ - "192.168.31.25/24" - ]; - gateway = [ - "192.168.31.1" - ]; - routes = [ - { - Gateway = "192.168.31.1"; - } - ]; + # dns = [ + # "192.168.31.1" + # ]; + # address = [ + # "192.168.31.25/24" + # ]; + # gateway = [ + # "192.168.31.1" + # ]; + # routes = [ + # { + # Gateway = "192.168.31.1"; + # } + # ]; matchConfig.Name = "eno2"; - # networkConfig = { - # DHCP = "no"; - # IPv6AcceptRA = true; - # }; + networkConfig = { + DHCP = "yes"; + IPv6AcceptRA = true; + }; }; }; };