From 563338c7ebde5d51835406af222f7207b8a63b88 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Fri, 8 Nov 2024 00:32:31 +0800 Subject: [PATCH] dust: drop scripted networking config stolen from nickcao's flake --- hosts/dust/default.nix | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/hosts/dust/default.nix b/hosts/dust/default.nix index 4db7b2e..9320f2a 100644 --- a/hosts/dust/default.nix +++ b/hosts/dust/default.nix @@ -44,6 +44,27 @@ } ); + networking = { + useNetworkd = true; + useDHCP = false; + }; + + systemd.network.networks = { + "10-wlan0" = { + name = "wlan0"; + DHCP = "yes"; + dhcpV4Config.RouteMetric = 2048; + dhcpV6Config.RouteMetric = 2048; + }; + "11-eth" = { + matchConfig = { + Kind = "!*"; + Type = "ether"; + }; + DHCP = "yes"; + }; + }; + boot.kernelPackages = lib.mkForce pkgs.linuxPackages_testing; nix.extraOptions = "!include ${config.sops.secrets.nix-access-tokens.path}";