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