49 lines
1.5 KiB
Nix
49 lines
1.5 KiB
Nix
|
{ lib, ... }: {
|
||
|
networking.nameservers = lib.mkDefault [
|
||
|
"[2a05:f480:1800:d2e::1]:853#resolve.solitary.social"
|
||
|
"80.240.30.163:853#resolve.solitary.social"
|
||
|
"[2a01:4f8:1c0c:6c89::1]:853#resolve.nyantec.com"
|
||
|
"116.203.220.161:853#resolve.nyantec.com"
|
||
|
];
|
||
|
|
||
|
networking.nftables.enable = lib.mkDefault true;
|
||
|
networking.useNetworkd = lib.mkDefault true;
|
||
|
|
||
|
services.resolved = {
|
||
|
enable = lib.mkDefault true;
|
||
|
dnsovertls = lib.mkDefault "true";
|
||
|
dnssec = lib.mkDefault "true";
|
||
|
};
|
||
|
|
||
|
systemd.network.networks."98-ethernet-default-dhcp" = {
|
||
|
matchConfig.Type = "ether";
|
||
|
matchConfig.Name = "en*";
|
||
|
|
||
|
DHCP = lib.mkDefault "yes";
|
||
|
dhcpV4Config.UseDNS = lib.mkDefault false;
|
||
|
dhcpV6Config.UseDNS = lib.mkDefault false;
|
||
|
ipv6AcceptRAConfig.Token = lib.mkDefault "prefixstable";
|
||
|
|
||
|
fairQueueingConfig.Pacing = lib.mkDefault true;
|
||
|
};
|
||
|
|
||
|
systemd.network.networks."98-wireless-client-dhcp" = {
|
||
|
matchConfig.Type = "wlan";
|
||
|
matchConfig.WLANInterfaceType = "station";
|
||
|
|
||
|
DHCP = lib.mkDefault "yes";
|
||
|
dhcpV4Config.UseDNS = lib.mkDefault false;
|
||
|
dhcpV4Config.RouteMetric = lib.mkDefault 1025;
|
||
|
dhcpV6Config.UseDNS = lib.mkDefault false;
|
||
|
ipv6AcceptRAConfig.Token = lib.mkDefault "prefixstable";
|
||
|
ipv6AcceptRAConfig.RouteMetric = lib.mkDefault 1025;
|
||
|
|
||
|
cakeConfig = {
|
||
|
Bandwidth = lib.mkDefault "100M";
|
||
|
AutoRateIngress = lib.mkDefault true;
|
||
|
UseRawPacketSize = lib.mkDefault false;
|
||
|
PriorityQueueingPreset = lib.mkDefault "diffserv4";
|
||
|
};
|
||
|
};
|
||
|
}
|