Something went wrong. Try again.
What happens if I push all of nixpkgs
Something went wrong. Try again.
Nix
12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394{ lib, ... }:let inherit (lib) types mkOption;
inherit (types) # attrsOf uses attrsWith internally attrsOf listOf unique nullOr functionTo coercedTo either ;in{ imports = [ # Module A ( { ... }: { options.attrsWith = mkOption { type = attrsOf (listOf types.str); }; options.mergedAttrsWith = mkOption { type = attrsOf (listOf types.str); }; options.listOf = mkOption { type = listOf (listOf types.str); }; options.mergedListOf = mkOption { type = listOf (listOf types.str); }; # unique options.unique = mkOption { type = unique { message = ""; } (listOf types.str); }; options.mergedUnique = mkOption { type = unique { message = ""; } (listOf types.str); }; # nullOr options.nullOr = mkOption { type = nullOr (listOf types.str); }; options.mergedNullOr = mkOption { type = nullOr (listOf types.str); }; # functionTo options.functionTo = mkOption { type = functionTo (listOf types.str); }; options.mergedFunctionTo = mkOption { type = functionTo (listOf types.str); }; # coercedTo # Note: coercedTo is a non-mergeable option-type options.coercedTo = mkOption { type = coercedTo (listOf types.str) lib.id (listOf types.str); }; options.either = mkOption { type = either (listOf types.str) (listOf types.str); }; options.mergedEither = mkOption { type = either (listOf types.str) (listOf types.str); }; } ) # Module B ( { ... }: { options.mergedAttrsWith = mkOption { type = attrsOf (listOf types.str); }; options.mergedListOf = mkOption { type = listOf (listOf types.str); }; options.mergedUnique = mkOption { type = unique { message = ""; } (listOf types.str); }; options.mergedNullOr = mkOption { type = nullOr (listOf types.str); }; options.mergedFunctionTo = mkOption { type = functionTo (listOf types.str); }; options.mergedEither = mkOption { type = either (listOf types.str) (listOf types.str); }; } ) ];}