fix(metrics): eth is better than wifi

This commit is contained in:
catvayor 2024-10-24 21:59:12 +02:00
parent 063d092de9
commit dd7e1d177a
Signed by: lbailly
GPG key ID: CE3E645251AC63F3

View file

@ -30,24 +30,32 @@
efi.canTouchEfiVariables = true;
};
networking = {
interfaces.enp2s0.useDHCP = lib.mkDefault true;
networkmanager = {
enable = true;
unmanaged = [
"enp2s0"
];
};
networking.networkmanager = {
enable = true;
unmanaged = [
"enp2s0"
"wg0"
];
};
kat.wireguardPubKey = "zIHvCSzk5a94jvnXU4iscbp9RUGzbWpARDMRgHNtMl4=";
systemd.network = {
wait-online.anyInterface = true;
networks."50-wg0" = {
name = "wg0";
address = [
"10.10.10.13/24"
"10.42.1.1/16"
];
networks = {
"50-wg0" = {
name = "wg0";
address = [
"10.10.10.13/24"
"10.42.1.1/16"
];
};
"10-enp2s0" = {
name = "enp2s0";
DHCP = "ipv4";
networkConfig.IPv6AcceptRA = "yes";
dhcpV4Config.RouteMetric = 500;
dhcpV6Config.RouteMetric = 500;
ipv6AcceptRAConfig.RouteMetric = 500;
};
};
netdevs."50-wg0" = {
netdevConfig = {