1
Fork 0
satellite/home/adrielus/features/cli/git.nix

34 lines
713 B
Nix
Raw Normal View History

{ pkgs, config, ... }: {
2023-01-10 02:38:06 +01:00
programs.git = {
enable = true;
package = pkgs.gitFull;
aliases.graph = "log --decorate --oneline --graph";
2023-01-10 02:38:06 +01:00
userName = "Matei Adriel";
userEmail = "rafaeladriel11@gmail.com";
extraConfig = {
github.user = "Mateiadrielrafael";
hub.protocol = "ssh";
core.editor = "nvim";
rebase.autoStash = true;
2023-03-31 19:45:20 +02:00
init.defaultBranch = "main";
# Sign commits using ssh
gpg.format = "ssh";
user.signingkey = "~/.ssh/id_ed25519.pub";
# Sign everything by default
commit.gpgsign = true;
tag.gpgsign = true;
2023-01-10 02:38:06 +01:00
};
};
# Github cli
programs.gh = {
enable = true;
settings.git_protocol = "ssh";
};
2023-01-10 02:38:06 +01:00
}