networking/module.nix: networking improvements
This commit is contained in:
parent
e810a89232
commit
b168b0bb49
2 changed files with 22 additions and 2 deletions
|
@ -6,6 +6,17 @@ in {
|
|||
];
|
||||
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"
|
||||
|
@ -14,8 +25,17 @@ in {
|
|||
};
|
||||
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;
|
||||
# };
|
||||
# };
|
||||
}
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
in {
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
# Removes about 2GB of stuff we do no need.
|
||||
plugins = mkForce [];
|
||||
# # Removes about 2GB of stuff we do no need.
|
||||
# plugins = mkForce [];
|
||||
|
||||
dns = "systemd-resolved";
|
||||
unmanaged = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue