diff options
| author | Baitinq <[email protected]> | 2022-10-06 17:24:54 +0200 |
|---|---|---|
| committer | Baitinq <[email protected]> | 2022-10-06 23:07:56 +0200 |
| commit | b934bb846f9bb157c52f96a035b92229c1f72071 (patch) | |
| tree | 5a1a9ef40da8b1c1af846a95b41cbf5f7a9c6713 | |
| parent | Hosts: Explicitly enable some networking options (diff) | |
| download | nixos-config-b934bb846f9bb157c52f96a035b92229c1f72071.tar.gz nixos-config-b934bb846f9bb157c52f96a035b92229c1f72071.tar.bz2 nixos-config-b934bb846f9bb157c52f96a035b92229c1f72071.zip | |
Hosts: Enable local dns server using unbound
| -rw-r--r-- | hosts/configuration.nix | 4 |
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; |