Added internal dns to newton

This commit is contained in:
Julien Malka 2022-05-10 07:52:23 +02:00
parent bc47b08d6e
commit b953c6e208
Signed by: Luj
GPG key ID: 6FC74C847011FD83

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
'';
};