home | add gitconfig
This commit is contained in:
parent
445c9cbd4f
commit
9b68f253a8
2 changed files with 52 additions and 0 deletions
51
home/git.nix
Normal file
51
home/git.nix
Normal file
|
|
@ -0,0 +1,51 @@
|
|||
{ pkgs, config, ... }:
|
||||
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
aliases = {
|
||||
co = "checkout";
|
||||
br = "branch";
|
||||
ci = "commit";
|
||||
st = "status";
|
||||
last = "cat-file commit HEAD";
|
||||
};
|
||||
diff-so-fancy = {
|
||||
enable = true;
|
||||
};
|
||||
extraConfig = {
|
||||
core = {
|
||||
user = "Don Harper";
|
||||
email = "duck@duckland.org";
|
||||
editor = "${pkgs.neovim}/bin/nvim";
|
||||
};
|
||||
user = {
|
||||
name = "Don Harper";
|
||||
email = "duck@duckland.org";
|
||||
};
|
||||
push = {
|
||||
default = "simple";
|
||||
};
|
||||
pull = {
|
||||
rebase = "false";
|
||||
};
|
||||
git-extras = {
|
||||
github-personal-access-token = "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";
|
||||
};
|
||||
fetch = {
|
||||
prune = "true";
|
||||
};
|
||||
init = {
|
||||
defaultBranch = "main";
|
||||
};
|
||||
credential = {
|
||||
"https://github.com" = {
|
||||
helper = "!${pkgs.gh}/bin/gh auth git-credential";
|
||||
};
|
||||
"https://gist.github.com" = {
|
||||
helper = "!${pkgs.gh}/bin/gh auth git-credential";
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
@ -3,6 +3,7 @@
|
|||
imports = [
|
||||
./bash_complition.nix
|
||||
./btop.nix
|
||||
./git.nix
|
||||
./khal.nix
|
||||
./khard.nix
|
||||
./lf.nix
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue