Need Help with Dependencies for vscode.fhs

I have installed vscode fhs with:

  # Define a user account. Don't forget to set a password with ‘passwd’.
  users.users.username = {
    isNormalUser = true;
    extraGroups = [ "networkmanager" "wheel" ];
    packages = with pkgs; [
    shell =;

and it is my understanding, that I will need to bring some apps into vscode environment when I start installing extensions. I can’t figure out how to transalate wiki line

programs.vscode.package = pkgs.vscode.fhsWithPackages (ps: with ps; [ rustup zlib pkg-config ]);

into my configuration. Everything I tried results on some cryptic errors that I don’t know how to handle.