How can we pass argument to flake.nix?

Do you have an example repo of using this approach? I’m trying this exact thing here with no success: Add option to direnv shell.nix - #2 by akarypid