From 212d4a5d6f99988a43505bcb819388559c88a301 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cyryl=20P=C5=82otnicki?= Date: Sun, 1 Jan 2023 12:25:16 +0000 Subject: [PATCH] use explicit dns setup on the servers --- nixos/server-common.nix | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/nixos/server-common.nix b/nixos/server-common.nix index a6f64fe8..84af24dc 100644 --- a/nixos/server-common.nix +++ b/nixos/server-common.nix @@ -1,8 +1,10 @@ -{ - config, - pkgs, - ... -}: { - imports = [./server-security.nix ./tailscale]; +{ config, pkgs, ... }: { + imports = [ ./server-security.nix ./tailscale ]; + networking.nameservers = + [ "9.9.9.9" "2620:fe::fe" "149.112.112.112" "2620:fe::9" ]; + services.nscd = { + enable = true; + enableNsncd = true; + }; system.stateVersion = "22.05"; }