mirror of
https://github.com/aviallon/nixos-lib.git
synced 2026-04-05 17:27:50 +00:00
[Network] Add many different DNS options, including unbound
Signed-off-by: Antoine Viallon <antoine@lesviallon.fr>
This commit is contained in:
parent
bd85fa2566
commit
d28aef4d8c
1 changed files with 3 additions and 1 deletions
|
|
@ -22,7 +22,7 @@ in
|
|||
default = "systemd-resolved";
|
||||
example = "dnsmasq";
|
||||
description = "Set network DNS";
|
||||
type = types.enum [ "systemd-resolved" "dnsmasq" ];
|
||||
type = types.enum [ "systemd-resolved" "dnsmasq" "unbound" "none" "default" ];
|
||||
};
|
||||
};
|
||||
|
||||
|
|
@ -35,6 +35,8 @@ in
|
|||
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.unbound.enable = (cfg.dns == "unbound");
|
||||
|
||||
networking.networkmanager = {
|
||||
wifi.backend = mkDefault "iwd";
|
||||
dns = mkDefault cfg.dns;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue