git.iko.soy/typeable/nixpkgs
on master help sign in
tinc module: use enum
commit8f8184ece16f54b874996196a15191470ffa3fc1 authorEric Sagnes <eric.sagnes@gmail.com> dateFri 4 Nov 2016, 13:04 (10 years ago) parent5a3c2e3
1 file changed+1−1
nixos/modules/services/networking/tinc.nix+1−1
nixos/modules/services/networking/tinc.nix+1−1
@@ -68,7 +68,7 @@ in
6868
6969 interfaceType = mkOption {
7070 default = "tun";
71− type = types.addCheck types.str (n: n == "tun" || n == "tap");
71+ type = types.enum [ "tun" "tap" ];
7272 description = ''
7373 The type of virtual interface used for the network connection
7474 '';