home-manager/systems/common/git.nix

20 lines
301 B
Nix

{...}: {
programs.git = let
userName = "Kristian Krsnik";
userEmail = "git@krsnik.at";
in {
enable = true;
inherit userName userEmail;
signing = {
key = userEmail;
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
};
};
}