How to access NixOS flake inputs inside nixos container?

when I add inputs in the config = { config, pkgs, lib, inputs, ... }: { section inside the container and what to use inputs.nixpkgs-master from my nixos flake.nix, it throws error about error: attribute 'inputs' missing

I just want to overlay the service in the container with package from master branch and also patch it with some files from my own inputs repo, as the package in the stable branch is so outdated (searxng). How can I do that? Thanks!

As you are using flakes, probably the section on using flakes may be relevant? It doesn’t technically show passing inputs, but I’m guessing that packaging the whole thing as a flake is more likely to work if you want to use a flake-specific feature like inputs.