add git config
Signed-off-by: ahuston-0 <aliceghuston@gmail.com>
This commit is contained in:
parent
6dc2815e8b
commit
13481e49d2
@ -5,6 +5,7 @@
|
|||||||
./home/zsh.nix
|
./home/zsh.nix
|
||||||
./home/doom
|
./home/doom
|
||||||
./home/gammastep.nix
|
./home/gammastep.nix
|
||||||
|
./home/git.nix
|
||||||
];
|
];
|
||||||
|
|
||||||
home = {
|
home = {
|
||||||
|
27
users/alice/home/git.nix
Normal file
27
users/alice/home/git.nix
Normal file
@ -0,0 +1,27 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
programs.git = {
|
||||||
|
enable = true;
|
||||||
|
signing = {
|
||||||
|
key = "F63832C3080D6E1AC77EECF80B4245FFE305BC82";
|
||||||
|
signByDefault = true;
|
||||||
|
};
|
||||||
|
userEmail = "aliceghuston@gmail.com";
|
||||||
|
userName = "ahuston-0";
|
||||||
|
includes.config.contents = {
|
||||||
|
alias = {
|
||||||
|
gone =
|
||||||
|
!"git fetch -p && git for-each-ref --format '%(refname:short) %(upstream:track)' | awk '$2 == \"[gone]\" {print $1}' | xargs -r git branch -D";
|
||||||
|
};
|
||||||
|
push.autosetupremote = true;
|
||||||
|
pull.rebase = true;
|
||||||
|
color.ui = true;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user