I have been managing all my existing and new projects with nix for a few years and never look back. Guaranteed to build and run on all my machines.
nix flake new --template "github:nixvital/flake-templates#cpp-starter-kit" my-project
will create a skeleton for my new C++ projects.