nix-config/modules/shell/git.nix

25 lines
462 B
Nix
Raw Normal View History

2023-10-14 18:53:32 +02:00
{
config,
lib,
pkgs,
vars,
...
}: {
home-manager.users.${vars.user} = {
#Prefer IPv4 for ssh
home.file.".ssh/config".text = "AddressFamily inet";
2023-10-14 18:53:32 +02:00
programs.git = {
enable = true;
userName = "GHOSCHT";
userEmail = "31184695+GHOSCHT@users.noreply.github.com";
2023-10-15 14:29:15 +02:00
extraConfig = {
2023-12-04 12:03:29 +01:00
commit.gpgsign = true;
user.signingkey = "0x2C2C1C62A5388E82";
init.defaultBranch = "main";
2023-10-15 14:29:15 +02:00
};
2023-10-14 18:53:32 +02:00
};
};
}