lol

fcgiwrap module: use enum

+1 -1
+1 -1
nixos/modules/services/web-servers/fcgiwrap.nix
··· 21 21 }; 22 22 23 23 socketType = mkOption { 24 - type = types.addCheck types.str (t: t == "unix" || t == "tcp" || t == "tcp6"); 24 + type = types.enum [ "unix" "tcp" "tcp6" ]; 25 25 default = "unix"; 26 26 description = "Socket type: 'unix', 'tcp' or 'tcp6'."; 27 27 };