(neodymium/system) setup nameservers

This commit is contained in:
Laureηt 2023-11-29 15:39:30 +01:00
parent 42d74ddd66
commit 0c7e768235
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -1,7 +1,10 @@
{ lib, ... }: { { lib, ... }: {
# set hostname # the name of the machine
networking.hostName = "neodymium"; networking.hostName = "neodymium";
# domain name servers, use clouflare family
networking.nameservers = [ "1.1.1.2" "1.0.0.2" ];
# use networkManager, see nmcli # use networkManager, see nmcli
networking.networkmanager.enable = true; networking.networkmanager.enable = true;
@ -20,6 +23,4 @@
networking.useDHCP = lib.mkDefault true; networking.useDHCP = lib.mkDefault true;
# networking.interfaces.eno1.useDHCP = lib.mkDefault true; # networking.interfaces.eno1.useDHCP = lib.mkDefault true;
# networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true; # networking.interfaces.wlp4s0.useDHCP = lib.mkDefault true;
imports = [ ./wireguard.nix ];
} }