feat: add my custom dns server
This commit is contained in:
parent
3acbf43b4e
commit
d275bc88b2
@ -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
15
modules/host/network.nix
Normal 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" ];
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user