nix-config/modules/shell/git.nix

25 lines
561 B
Nix

{
config,
lib,
pkgs,
vars,
...
}: {
home-manager.users.${vars.user} = {
programs.git = {
enable = true;
userName = "GHOSCHT";
userEmail = "31184695+GHOSCHT@users.noreply.github.com";
extraConfig = {
# Sign all commits using ssh key
commit.gpgsign = true;
user.signingkey = "0x2C2C1C62A5388E82";
# gpg.format = "ssh";
# gpg.ssh.allowedSignersFile = "~/.ssh/allowed_signers";
# user.signingkey = "~/.ssh/git.pub";
init.defaultBranch = "main";
};
};
};
}