Files
tawm/modules/home-manager/git/default.nix

17 lines
321 B
Nix
Executable File

{email, ...}: {
programs.git = {
enable = true;
userName = "tuxdotrs";
userEmail = "${email}";
signing = {
key = "~/.ssh/id_ed25519.pub";
signByDefault = true;
};
extraConfig = {
init.defaultBranch = "main";
commit.gpgSign = true;
gpg.format = "ssh";
};
};
}