Lenny Loosejocks in Space/Mars

Mars is the red planet. The bomb is hidden inside a pyramid.

In theory getting into the pyramid is simple. Just flip the lever with the pyramid marking. But by the time when you arrive at the pyramid, the lever is flipped back again. If you stand guard next to the lever you will see that an alien taking a joyride on a mars rover is the culprit.

To get rid of the troublesome alien you will need to open the large hatch on the ground. The switch to the hatch is on the side of the mountain. But before you trek onto the mountain, flip the lever on the scaffolding or the elevator contraption on the mountain wont be powered. After you've taken the elevator down, flip the lever, wait for the alien to get trapped and flip the lever again to close the hatch.

With the alien taken care of, just flip the pyramid lever one last time and enter the pyramid. Once inside the pyramid there is no sight of the bomb, just two levers and some strange blocks on the ground. The levers control the blocks. The blocks are latches that prevent an elevator from moving. With the elevator unlatched, just step onto it, it's in between the two sets of latches. It will take you straight to the bomb.

Disarming the bomb
Work column by column, the same solution can be used on each column.

Once the bomb is disarmed, just take the elevator down and go back to your ship.