Both :)
Some countries have their own standard bodies [1], but I would not be surprised if some smaller countries just used NIST standards. And even countries with their own standards use some of NIST or ANSI indirectly when they become ISO standards.
[1] https://en.m.wikipedia.org/wiki/Standards_organization