1
0
Fork 1
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:
Eric Sagnes 2016-11-04 13:04:17 +09:00
parent 5a3c2e3db0
commit 8f8184ece1

View file

@ -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
'';