feat: add my custom dns server

This commit is contained in:
2025-03-28 18:39:35 +03:00
parent 3acbf43b4e
commit d275bc88b2
2 changed files with 16 additions and 1 deletions

15
modules/host/network.nix Normal file
View File

@ -0,0 +1,15 @@
{
networking = {
enableIPv6 = true;
useDHCP = false;
nameservers = [ "193.222.99.172" "1.1.1.1" ];
dhcpcd.extraConfig = "nohook resolv.conf";
networkmanager = {
enable = true;
dns = "none";
insertNameservers = [ "193.222.99.172" "1.1.1.1" ];
};
};
}