The short answer to your question is yes. Index funds are about the easiest and most efficient diversified way to invest your money. Vanguard's are among the cheapest and best.
Be aware, though, that passive income doesn't mean you do nothing for your money. In the case of investing, what you are doing is bearing risk. That is, you are being paid (on average) to put your money in a situation where you may lose money. If you keep your eye on the long-term prize, then when (not if) you sustain losses in your investment account, you will have the patience to leave the money in there.
I'm a little confused by your wording about increasing your salary. Normally we think of index funds as a way to increase our wealth. If you are making new investments, presumably you have more salary than you need right now. Normal index funds will reinvest dividends automatically, so you will see the value of your investments rise but will not see any cash flows per se unless you are selling your holdings. If you want actual cash coming out of your investment, you can use ETF's to achieve the same type of investment and treat the dividends as a supplement to your income. Note, however, that some gains in your ETF will be in the form of capital gains and some will be dividends. Think more like 2% year per in dividend payments and the rest in capital gains.
If your objective is to save for retirement, please consider investing through an IRA, Roth IRA, or through your 401(k). No need to give uncle sam a gift from your hard-earned money.