From b953c6e20809d031d564376798748dd6bdbeb52d Mon Sep 17 00:00:00 2001 From: Julien Malka Date: Tue, 10 May 2022 07:52:23 +0200 Subject: [PATCH] Added internal dns to newton --- machines/newton/default.nix | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/machines/newton/default.nix b/machines/newton/default.nix index f5dbdce..0ad5186 100644 --- a/machines/newton/default.nix +++ b/machines/newton/default.nix @@ -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 + ''; + }; +