47 lines
876 B
Nix
47 lines
876 B
Nix
|
{ pkgs, ... }:
|
||
|
|
||
|
{
|
||
|
programs.git = {
|
||
|
enable = true;
|
||
|
lfs.enable = true;
|
||
|
|
||
|
userName = "Maddie H";
|
||
|
userEmail = "maddie@spyhoodle.me";
|
||
|
signing = {
|
||
|
key = "FA50688B9EB6D8AA070C8241C296DE8C9053683F";
|
||
|
signByDefault = true;
|
||
|
gpgPath = "/run/current-system/sw/bin/gpg";
|
||
|
};
|
||
|
|
||
|
aliases = {
|
||
|
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 = "/run/current-system/sw/bin/ssh";
|
||
|
};
|
||
|
|
||
|
ignores = [
|
||
|
"**/.DS_Store"
|
||
|
"**/._.DS_Store"
|
||
|
".DS_Store"
|
||
|
"._.DS_Store"
|
||
|
"**/*.swp"
|
||
|
"*.swp"
|
||
|
];
|
||
|
};
|
||
|
|
||
|
home.packages = with pkgs; [
|
||
|
gh
|
||
|
git-review
|
||
|
];
|
||
|
}
|