nixos-config/machines/name.nix
Christoph Heiss 4bf1fdf3cd
name: Add bootstrap DNS server for services.blocky
Signed-off-by: Christoph Heiss <christoph@c8h4.io>
2023-04-13 21:05:05 +02:00

32 lines
645 B
Nix

{ lib, ... }:
{
imports = [
../secrets/homelab.nix
../secrets/machines/name.nix
../services/blocky.nix
../services/unbound.nix
../system/lxc.nix
];
system = {
nssModules = lib.mkForce [ ];
stateVersion = "23.05";
};
networking.firewall = {
allowedTCPPorts = [ 53 ];
allowedUDPPorts = [ 53 ];
};
# Disable all system DNS services
services.nscd.enable = false;
services.resolved.enable = false;
services.unbound.settings.server.port = 5353;
services.blocky.settings = {
bootstrapDns.upstream = "tcp+udp:127.0.0.1:5353";
upstream.default = [ "tcp+udp:127.0.0.1:5353" ];
};
}