Files
nix-config/share/home/git.nix

25 lines
477 B
Nix

{ pkgs, ... }:
let
gitAliases = {
co = "checkout";
ci = "commit";
cia = "commit --amend";
s = "status";
st = "status";
b = "branch";
p = "pull --rebase";
pu = "push";
};
in
{
programs.git = {
enable = true;
package = pkgs.git.override { withLibsecret = true; };
userName = "mjallen18";
userEmail = "matt.l.jallen@gmail.com";
aliases = gitAliases;
extraConfig = {
credential.helper = "libsecret";
};
};
}