git.iko.soy/typeable/nixpkgs
on master help sign in
fcgiwrap module: use enum
commit797d40767ddb121e49fa0ee2e224c64bdcb376a3 authorEric Sagnes <eric.sagnes@gmail.com> dateFri 4 Nov 2016, 13:04 (10 years ago) parent8f8184e
1 file changed+1−1
nixos/modules/services/web-servers/fcgiwrap.nix+1−1
nixos/modules/services/web-servers/fcgiwrap.nix+1−1
@@ -21,7 +21,7 @@ in {
2121 };
2222
2323 socketType = mkOption {
24− type = types.addCheck types.str (t: t == "unix" || t == "tcp" || t == "tcp6");
24+ type = types.enum [ "unix" "tcp" "tcp6" ];
2525 default = "unix";
2626 description = "Socket type: 'unix', 'tcp' or 'tcp6'.";
2727 };