dust: drop scripted networking

config stolen from nickcao's flake
This commit is contained in:
Guanran Wang 2024-11-08 00:32:31 +08:00
parent 8282e5a112
commit 563338c7eb
Signed by: nyancat
GPG key ID: 91F97D9ED12639CF

View file

@ -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; boot.kernelPackages = lib.mkForce pkgs.linuxPackages_testing;
nix.extraOptions = "!include ${config.sops.secrets.nix-access-tokens.path}"; nix.extraOptions = "!include ${config.sops.secrets.nix-access-tokens.path}";