feat: add my custom dns server
This commit is contained in:
parent
1bd07d8062
commit
1a149b2a00
@ -13,6 +13,7 @@
|
||||
./host/sound.nix
|
||||
./host/virtmanager.nix
|
||||
./host/vpn.nix
|
||||
./host/network.nix
|
||||
];
|
||||
|
||||
programs.hyprland.enable = true;
|
||||
@ -21,5 +22,4 @@
|
||||
fstrim.enable = true;
|
||||
upower.enable = true;
|
||||
};
|
||||
networking.networkmanager.enable = true;
|
||||
}
|
||||
|
22
modules/host/network.nix
Normal file
22
modules/host/network.nix
Normal 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
|
||||
# '';
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user