mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-20 12:42:24 +00:00
tinc module: use enum
This commit is contained in:
parent
5a3c2e3db0
commit
8f8184ece1
|
@ -68,7 +68,7 @@ in
|
|||
|
||||
interfaceType = mkOption {
|
||||
default = "tun";
|
||||
type = types.addCheck types.str (n: n == "tun" || n == "tap");
|
||||
type = types.enum [ "tun" "tap" ];
|
||||
description = ''
|
||||
The type of virtual interface used for the network connection
|
||||
'';
|
||||
|
|
Loading…
Reference in a new issue