nixos: modules: dns: add dhcp
This commit is contained in:
parent
6ce0c41baf
commit
35302e5753
1 changed files with 2 additions and 1 deletions
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue