nixos: modules: dns: add dhcp

This commit is contained in:
Guanran Wang 2023-12-10 18:14:16 +08:00
parent 6ce0c41baf
commit 35302e5753
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -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"