home-manager/modules/git.nix

16 lines
269 B
Nix

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