Merged networking folder into core and services
This commit is contained in:
parent
1aaed31ae1
commit
3360f30690
6 changed files with 3 additions and 6 deletions
22
system/core/networking.nix
Normal file
22
system/core/networking.nix
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
# networking configuration
|
||||
{pkgs, ...}: {
|
||||
#FIXME:
|
||||
networking = {
|
||||
# use quad9 with DNS over TLS
|
||||
nameservers = ["9.9.9.9#dns.quad9.net"];
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
wifi.powersave = true;
|
||||
};
|
||||
};
|
||||
users.groups.NetworkManager = {};
|
||||
|
||||
services.resolved = {
|
||||
# DNS resolver that tries to encrypt dns traffic
|
||||
enable = true;
|
||||
dnsovertls = "opportunistic";
|
||||
};
|
||||
|
||||
systemd.services.NetworkManager-wait-online.enable = false;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue