dust: drop scripted networking
config stolen from nickcao's flake
This commit is contained in:
parent
8282e5a112
commit
563338c7eb
1 changed files with 21 additions and 0 deletions
|
@ -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}";
|
||||||
|
|
Loading…
Reference in a new issue