From 35302e57531d27960ef03345ff7ef0c67c86db74 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Sun, 10 Dec 2023 18:14:16 +0800 Subject: [PATCH] nixos: modules: dns: add dhcp --- nixos/modules/networking/dns.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/nixos/modules/networking/dns.nix b/nixos/modules/networking/dns.nix index 7f44587..517fc75 100644 --- a/nixos/modules/networking/dns.nix +++ b/nixos/modules/networking/dns.nix @@ -8,7 +8,7 @@ in { options = { myFlake.nixos.networking.dns = { provider = lib.mkOption { - type = lib.types.enum ["google" "alidns"]; + type = lib.types.enum ["dhcp" "google" "alidns"]; default = { "Asia/Shanghai" = "alidns"; @@ -24,6 +24,7 @@ in { config = { networking.nameservers = { + dhcp = []; google = [ ### Google DNS "8.8.8.8"