How to Map Procedural Bricks on a Pyramid
This is rather easy to do :).
Just unwrap your object using Cube Projection and connect your UV map.


Select all vertices of your object.
Go to UV > Cube Projection





Connect nodes like in this image.
Use the UV output - this will connect your UV map (that you just made).