Separate networking configuration
This commit is contained in:
parent
2906243c99
commit
f7925692ec
2 changed files with 43 additions and 35 deletions
|
@ -9,6 +9,7 @@
|
|||
./searxng.nix
|
||||
./energy.nix
|
||||
./ssh.nix
|
||||
./networking.nix
|
||||
];
|
||||
|
||||
config = {
|
||||
|
@ -25,41 +26,6 @@
|
|||
libinput.enable = true;
|
||||
};
|
||||
|
||||
networking.networkmanager = {
|
||||
enable = true;
|
||||
dns = "systemd-resolved";
|
||||
ethernet = {
|
||||
macAddress = "random";
|
||||
};
|
||||
wifi = {
|
||||
backend = "iwd";
|
||||
macAddress = "random";
|
||||
};
|
||||
};
|
||||
|
||||
networking.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"
|
||||
];
|
||||
|
||||
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";
|
||||
};
|
||||
|
||||
networking.firewall.enable = true;
|
||||
|
||||
time.timeZone = "America/Montevideo";
|
||||
i18n.defaultLocale = "en_US.UTF-8";
|
||||
i18n.extraLocaleSettings = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue