about summary refs log tree commit diff
diff options
context:
space:
mode:
authorNguyễn Gia Phong <mcsinyx@disroot.org>2022-08-18 18:03:15 +0900
committerNguyễn Gia Phong <mcsinyx@disroot.org>2022-08-18 18:05:19 +0900
commit345671ad9a7af91fe950d11a2b6b6956c9b4d032 (patch)
treec4b349cd6a3470b3cc5fdf8cff1342ce96e3b675
parent1cb98c25357a0190dd1c117a0258038def1c3278 (diff)
downloaddotfiles-345671ad9a7af91fe950d11a2b6b6956c9b4d032.tar.gz
Switch to DNS.Watch
-rw-r--r--nix/configuration.nix16
1 files changed, 11 insertions, 5 deletions
diff --git a/nix/configuration.nix b/nix/configuration.nix
index 139063d..2dff2e4 100644
--- a/nix/configuration.nix
+++ b/nix/configuration.nix
@@ -29,10 +29,18 @@
   networking = {
     hostName = "nix";
     hosts = {
-      "0.0.0.0" = [ ];
+      "0.0.0.0" = [ "9gag.com" "voz.vn" ];
+      "23.227.135.186" = [ "halogen.city" ];
+      "37.205.11.127" = [ "loang.net" "than.loang.net" ];
+    };
+    nameservers = [
+      "84.200.69.80" "84.200.70.40"
+      "2001:1608:10:25::1c04:b12f" "2001:1608:10:25::9249:d69b"
+    ];
+    networkmanager = {
+      enable = true;
+      insertNameservers = config.networking.nameservers;
     };
-    nameservers = [ "9.9.9.11" "149.112.112.11" ];
-    networkmanager.enable = true;
 
     interfaces = {
       enp1s0.useDHCP = true;
@@ -75,8 +83,6 @@
   security.rtkit.enable = true;
   # List services that you want to enable:
   services = {
-    mullvad-vpn.enable = true;
-
     pipewire = {
       enable = true;
       alsa.enable = true;