about summary refs log tree commit diff
path: root/hosts
diff options
context:
space:
mode:
authorBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-06 17:24:54 +0200
committerBaitinq <manuelpalenzuelamerino@gmail.com>2022-10-06 23:07:56 +0200
commitb934bb846f9bb157c52f96a035b92229c1f72071 (patch)
tree5a1a9ef40da8b1c1af846a95b41cbf5f7a9c6713 /hosts
parentHosts: Explicitly enable some networking options (diff)
downloadnixos-config-b934bb846f9bb157c52f96a035b92229c1f72071.tar.gz
nixos-config-b934bb846f9bb157c52f96a035b92229c1f72071.tar.bz2
nixos-config-b934bb846f9bb157c52f96a035b92229c1f72071.zip
Hosts: Enable local dns server using unbound
Diffstat (limited to '')
-rw-r--r--hosts/configuration.nix4
1 files changed, 3 insertions, 1 deletions
diff --git a/hosts/configuration.nix b/hosts/configuration.nix
index a77d203..b8a8ffc 100644
--- a/hosts/configuration.nix
+++ b/hosts/configuration.nix
@@ -40,10 +40,11 @@
     hostName = hostname; # Define your hostname.
     enableIPv6 = true;
     extraHosts = builtins.readFile "${dotfiles}/hosts";
-    nameservers = [ "9.9.9.9" ];
     dhcpcd = {
       enable = true;
+      extraConfig = "nohook resolv.conf";
     };
+    resolvconf.enable = false;
     firewall = {
       enable = true;
       allowedTCPPorts = [ 80 22 9090 ];
@@ -140,6 +141,7 @@
         port = 22;
       }];
     };
+    unbound.enable = true;
     dbus.enable = true;
     irqbalance.enable = true;
     fwupd.enable = true;