I think it applies to any project, not just open source ones. When the going gets tough, and it always eventually get tough, you'll need personal interest or passion to get you through.
Opensource projects typically fall in the latter category. The ideal situation is if you manage to establish some sort of connection between your pet project and your source of income.
edit: typos