feat: add my custom dns server

This commit is contained in:
Sweetbread 2025-03-28 18:39:35 +03:00
parent 1bd07d8062
commit 1a149b2a00
2 changed files with 23 additions and 1 deletions

View File

@ -13,6 +13,7 @@
./host/sound.nix ./host/sound.nix
./host/virtmanager.nix ./host/virtmanager.nix
./host/vpn.nix ./host/vpn.nix
./host/network.nix
]; ];
programs.hyprland.enable = true; programs.hyprland.enable = true;
@ -21,5 +22,4 @@
fstrim.enable = true; fstrim.enable = true;
upower.enable = true; upower.enable = true;
}; };
networking.networkmanager.enable = true;
} }

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

@ -0,0 +1,22 @@
{
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" ];
};
};
# environment.etc."resolv.conf".text = ''
# nameserver 193.222.99.172
# nameserver 1.1.1.1
# options edns0
# '';
}