mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-11-16 14:54:29 +01:00
tinc module: use enum
This commit is contained in:
parent
5a3c2e3db0
commit
8f8184ece1
1 changed files with 1 additions and 1 deletions
|
@ -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…
Reference in a new issue