about summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorEric Sagnes <eric.sagnes@gmail.com>2016-11-04 13:04:17 +0900
committerEric Sagnes <eric.sagnes@gmail.com>2016-11-04 13:04:17 +0900
commit8f8184ece16f54b874996196a15191470ffa3fc1 (patch)
tree8b1a2944335f9eeb292ef106d9af24b6878d6e73 /nixos
parent5a3c2e3db07218957784ec16dcea2c5d75c9337b (diff)
downloadnixlib-8f8184ece16f54b874996196a15191470ffa3fc1.tar
nixlib-8f8184ece16f54b874996196a15191470ffa3fc1.tar.gz
nixlib-8f8184ece16f54b874996196a15191470ffa3fc1.tar.bz2
nixlib-8f8184ece16f54b874996196a15191470ffa3fc1.tar.lz
nixlib-8f8184ece16f54b874996196a15191470ffa3fc1.tar.xz
nixlib-8f8184ece16f54b874996196a15191470ffa3fc1.tar.zst
nixlib-8f8184ece16f54b874996196a15191470ffa3fc1.zip
tinc module: use enum
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/networking/tinc.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/nixos/modules/services/networking/tinc.nix b/nixos/modules/services/networking/tinc.nix
index b26d30597b1f..f8e68fda7fc2 100644
--- a/nixos/modules/services/networking/tinc.nix
+++ b/nixos/modules/services/networking/tinc.nix
@@ -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
               '';