forked from mirrors/nixpkgs
network-interfaces module: use enum
This commit is contained in:
parent
80b854739c
commit
ffc0e2f4fc
|
@ -245,7 +245,7 @@ let
|
||||||
|
|
||||||
virtualType = mkOption {
|
virtualType = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
type = types.nullOr (types.addCheck types.str (v: v == "tun" || v == "tap"));
|
type = with types; nullOr (enum [ "tun" "tap" ]);
|
||||||
description = ''
|
description = ''
|
||||||
The explicit type of interface to create. Accepts tun or tap strings.
|
The explicit type of interface to create. Accepts tun or tap strings.
|
||||||
Also accepts null to implicitly detect the type of device.
|
Also accepts null to implicitly detect the type of device.
|
||||||
|
|
Loading…
Reference in a new issue