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 = {
|
options = {
|
||||||
myFlake.nixos.networking.dns = {
|
myFlake.nixos.networking.dns = {
|
||||||
provider = lib.mkOption {
|
provider = lib.mkOption {
|
||||||
type = lib.types.enum ["google" "alidns"];
|
type = lib.types.enum ["dhcp" "google" "alidns"];
|
||||||
default =
|
default =
|
||||||
{
|
{
|
||||||
"Asia/Shanghai" = "alidns";
|
"Asia/Shanghai" = "alidns";
|
||||||
|
@ -24,6 +24,7 @@ in {
|
||||||
config = {
|
config = {
|
||||||
networking.nameservers =
|
networking.nameservers =
|
||||||
{
|
{
|
||||||
|
dhcp = [];
|
||||||
google = [
|
google = [
|
||||||
### Google DNS
|
### Google DNS
|
||||||
"8.8.8.8"
|
"8.8.8.8"
|
||||||
|
|
Loading…
Reference in a new issue