fcgiwrap module: use enum

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