Files
nix-config/modules/home/git/default.nix
2025-10-27 21:43:16 +05:30

23 lines
363 B
Nix
Executable File

{
email,
username,
...
}: {
programs.git = {
enable = true;
signing = {
key = "~/.ssh/id_ed25519.pub";
signByDefault = true;
};
settings = {
user = {
name = "${username}";
email = "${email}";
};
init.defaultBranch = "main";
commit.gpgSign = true;
gpg.format = "ssh";
};
};
}