のが習慣だった

was a habit to

→ の
phrase Rare #38,124
was a habit to Follows a verb phrase to describe something that used to be a habit.
JA: 学生の頃、毎朝日記を書くのが習慣だった。
EN: When I was a student, it was a habit to write in my journal every morning.

私たちは朝食前に散歩するのが習慣だった。

We used to go for a walk before breakfast.

彼は夕食後、散歩するのが習慣だった。

He made it a habit to go for a walk after dinner.

子供の頃、彼は彼女と遊ぶのが習慣だった。

When he was a child, he used to play with her.