Added internal dns to newton

This commit is contained in:
Luj 2022-05-10 07:52:23 +02:00
parent 8442c8686e
commit d6bd6db6e9

View file

@ -38,10 +38,18 @@ in
services.zfs.autoSnapshot.enable = true;
services.zfs.autoScrub.enable = true;
environment.systemPackages = [ pkgs.tailscale ];
environment.systemPackages = [ pkgs.tailscale ];
# enable the tailscale service
services.tailscale.enable = true;
networking.nameservers = [ "100.127.245.71" "9.9.9.9" ];
environment.etc."resolv.conf" = with lib; with pkgs; {
source = writeText "resolv.conf" ''
${concatStringsSep "\n" (map (ns: "nameserver ${ns}") config.networking.nameservers)}
options edns0
'';
};