config/homes/common/git.nix

48 lines
918 B
Nix
Raw Permalink Normal View History

2024-09-15 12:56:25 +01:00
{ pkgs, ... }:
{
programs.git = {
enable = true;
lfs.enable = true;
userName = "Maddie H";
userEmail = "maddie@spyhoodle.me";
signing = {
key = "FA50688B9EB6D8AA070C8241C296DE8C9053683F";
signByDefault = true;
gpgPath = "${pkgs.gnupg}/bin/gpg";
2024-09-15 12:56:25 +01:00
};
aliases = {
2024-10-07 15:20:52 +01:00
pushall = "!git remote | xargs -L1 git push --all";
2024-09-15 12:56:25 +01:00
graph = "log --graph --oneline --decorate";
unstage = "reset HEAD --";
co = "checkout";
br = "branch";
ci = "commit";
st = "status";
ps = "push";
};
extraConfig = {
init.defaultBranch = "development";
pull.rebase = "merges";
core.sshCommand = "${pkgs.openssh}/bin/ssh";
2024-09-15 12:56:25 +01:00
};
ignores = [
"**/.DS_Store"
"**/._.DS_Store"
".DS_Store"
"._.DS_Store"
"**/*.swp"
"*.swp"
];
};
home.packages = with pkgs; [
gh
git-review
];
}