tinc module: use enum
This commit is contained in:
parent
5a3c2e3db0
commit
8f8184ece1
@ -68,7 +68,7 @@ in
|
|||||||
|
|
||||||
interfaceType = mkOption {
|
interfaceType = mkOption {
|
||||||
default = "tun";
|
default = "tun";
|
||||||
type = types.addCheck types.str (n: n == "tun" || n == "tap");
|
type = types.enum [ "tun" "tap" ];
|
||||||
description = ''
|
description = ''
|
||||||
The type of virtual interface used for the network connection
|
The type of virtual interface used for the network connection
|
||||||
'';
|
'';
|
||||||
|
Loading…
x
Reference in New Issue
Block a user