Separate networking configuration
This commit is contained in:
parent
2906243c99
commit
f7925692ec
2 changed files with 43 additions and 35 deletions
42
hosts/micronix/networking.nix
Normal file
42
hosts/micronix/networking.nix
Normal file
|
@ -0,0 +1,42 @@
|
|||
{...}: {
|
||||
networking = {
|
||||
networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
ethernet = {
|
||||
macAddress = "random";
|
||||
};
|
||||
wifi = {
|
||||
backend = "iwd";
|
||||
macAddress = "random";
|
||||
};
|
||||
};
|
||||
|
||||
nameservers = [
|
||||
"9.9.9.9#dns.quad9.net"
|
||||
"149.112.112.112#dns.quad9.net"
|
||||
"2620:fe::fe#dns.quad9.net"
|
||||
"2620:fe::9#dns.quad9.net"
|
||||
];
|
||||
firewall = {
|
||||
enable = true;
|
||||
};
|
||||
nftables = {
|
||||
enable = true;
|
||||
};
|
||||
|
||||
services.resolved = {
|
||||
enable = true;
|
||||
dnssec = "true";
|
||||
domains = ["~."];
|
||||
fallbackDns = [
|
||||
"9.9.9.9#dns.quad9.net"
|
||||
"149.112.112.112#dns.quad9.net"
|
||||
"2620:fe::fe#dns.quad9.net"
|
||||
"2620:fe::9#dns.quad9.net"
|
||||
];
|
||||
dnsovertls = "true";
|
||||
llmnr = "true";
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue