41 lines
804 B
Nix
41 lines
804 B
Nix
{config, ...}: let
|
|
inherit (config.modules.other.system) username;
|
|
in {
|
|
imports = [
|
|
./networkmanager.nix
|
|
];
|
|
networking = {
|
|
enableIPv6 = true;
|
|
|
|
# INFO: This disables wpa_supplicant,
|
|
# I use nenetworkmanager instead.
|
|
wireless.enable = false;
|
|
|
|
dhcpcd = {
|
|
# faster boot times
|
|
wait = "background";
|
|
extraConfig = "noarp";
|
|
};
|
|
|
|
nameservers = [
|
|
# quad9 DNS
|
|
"9.9.9.9"
|
|
"2620::fe::fe"
|
|
];
|
|
};
|
|
services.resolved = {
|
|
enable = true;
|
|
dnssec = "false";
|
|
dnsovertls = "oppertunistic";
|
|
# quad9 dns
|
|
fallbackDns = ["9.9.9.9" "2620::fe::fe"];
|
|
};
|
|
users.users.${username}.extraGroups = ["networkmanager"];
|
|
|
|
# systemd = {
|
|
# network = {
|
|
# enable = true;
|
|
# wait-online.anyInterface = true;
|
|
# };
|
|
# };
|
|
}
|