Git is the most commonly used version control system for software development.
Declarative configuration
Git can be declaratively configured in Nix via home-manager. Here is an example:
{
programs.git = {
enable = true;
userName = "john";
userEmail = "[email protected]";
ignores = [ "*~" "*.swp" ];
extraConfig = {
init.defaultBranch = "master";
};
};
}