fix(metrics): eth is better than wifi
This commit is contained in:
parent
063d092de9
commit
dd7e1d177a
1 changed files with 22 additions and 14 deletions
|
@ -30,25 +30,33 @@
|
||||||
efi.canTouchEfiVariables = true;
|
efi.canTouchEfiVariables = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
networking = {
|
networking.networkmanager = {
|
||||||
interfaces.enp2s0.useDHCP = lib.mkDefault true;
|
|
||||||
networkmanager = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
unmanaged = [
|
unmanaged = [
|
||||||
"enp2s0"
|
"enp2s0"
|
||||||
|
"wg0"
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
|
||||||
kat.wireguardPubKey = "zIHvCSzk5a94jvnXU4iscbp9RUGzbWpARDMRgHNtMl4=";
|
kat.wireguardPubKey = "zIHvCSzk5a94jvnXU4iscbp9RUGzbWpARDMRgHNtMl4=";
|
||||||
systemd.network = {
|
systemd.network = {
|
||||||
wait-online.anyInterface = true;
|
wait-online.anyInterface = true;
|
||||||
networks."50-wg0" = {
|
networks = {
|
||||||
|
"50-wg0" = {
|
||||||
name = "wg0";
|
name = "wg0";
|
||||||
address = [
|
address = [
|
||||||
"10.10.10.13/24"
|
"10.10.10.13/24"
|
||||||
"10.42.1.1/16"
|
"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" = {
|
netdevs."50-wg0" = {
|
||||||
netdevConfig = {
|
netdevConfig = {
|
||||||
Name = "wg0";
|
Name = "wg0";
|
||||||
|
|
Loading…
Reference in a new issue