Local and nonlocal 1-Laplacian in Carnot groups