From 65c01b7383ce1ca367566d891c8c0e41e2699209 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 5 Jan 2025 02:36:46 +0800 Subject: [PATCH] pek0: use networkd --- hosts/pek0/default.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/hosts/pek0/default.nix b/hosts/pek0/default.nix index 0dd0ddc..c3c2be2 100644 --- a/hosts/pek0/default.nix +++ b/hosts/pek0/default.nix @@ -57,6 +57,19 @@ }; }; + networking = { + useNetworkd = true; + useDHCP = false; + }; + + systemd.network.networks.ethernet = { + matchConfig.Name = [ + "en*" + "eth*" + ]; + DHCP = "yes"; + }; + services.tailscale = { enable = true; openFirewall = true;