The goal is not to find one trick that works forever. It is to make the next useful action easier, then learn from what happens in real life.
Motivation changes from day to day
You may care deeply about a goal and still feel tired, distracted or rushed. Motivation rises and falls with sleep, stress, workload and mood.
That makes motivation useful for choosing a direction, but unreliable as the only thing powering every repetition.
Environment changes the cost of starting
Shoes beside the door, a filled water bottle on the desk, a book on the pillow or a phone charger outside the bedroom all change how much work the next choice requires.
Good environment design does not force you to act. It simply removes small barriers from the behaviour you already want.
Make unwanted actions slightly harder
The reverse also helps. Logging out of a distracting app, moving snacks out of sight or leaving the vape outside the usual reach adds a pause before the automatic action.
You do not need a huge barrier. Even a small interruption can create enough time to notice what you are about to do.
Design for low-energy days
The best environment is one that still helps when motivation is poor. Make the first action obvious, close and small enough that you do not need a motivational speech to begin.