nixos,dns: types.str -> types.enum

This commit is contained in:
Guanran Wang 2023-11-09 12:07:37 +08:00
parent 36bea2b498
commit dd84a0850b
Signed by: nyancat
SSH key fingerprint: SHA256:8oWGKciPALWut/6WA27oFKofX+6Wtc0gQnsefXLQx/8

View file

@ -4,7 +4,7 @@
...
}: {
options.myFlake.nixos.networking.dns = lib.mkOption {
type = lib.types.str;
type = lib.types.enum ["google" "alidns"];
default = "google";
example = "alidns";
description = "Select your DNS provider";