How to explicity pass arguments config and pkgs to home-manager's NixOS module

Thanks! I had to add nixpkgs.pkgs = pkgs to get nix to respect my overlays but it worked. Much obliged.

I am still curious though: which config is being passed by the module system to home.nix? I tried

home-manager.users.myUser = import ./home.nix {
  inherit pkgs; 
  config = pkgs.config; 
}

which worked, but I don’t want to accidentally stop the propagation of the correct/default config. Would it use the nixpkgs in scope unless specified otherwise by nixpkgs.pkgs?