feat: add my custom dns server

This commit is contained in:
Sweetbread 2025-03-28 18:39:35 +03:00
parent 3acbf43b4e
commit d275bc88b2
2 changed files with 16 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;
} }

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" ];
};
};
}