[Network] Reformat

This commit is contained in:
Antoine Viallon 2022-06-09 01:17:35 +02:00
parent 522d19bf5b
commit 9615339fb2
Signed by: aviallon
GPG key ID: 186FC35EDEB25716

View file

@ -32,9 +32,11 @@ in
networking.dhcpcd.enable = (cfg.backend == "dhcpcd");
services.resolved.enable = (cfg.dns == "systemd-resolved");
services.resolved.llmnr = mkForce "false"; # https://www.blackhillsinfosec.com/how-to-disable-llmnr-why-you-want-to/
services.resolved.dnssec = "false"; # Causes issues with masquerading DNS
services.resolved = {
enable = (cfg.dns == "systemd-resolved");
llmnr = mkForce "false"; # https://www.blackhillsinfosec.com/how-to-disable-llmnr-why-you-want-to/
dnssec = "false"; # Causes issues with masquerading DNS
};
services.unbound.enable = (cfg.dns == "unbound");