nixos-config/home-manager/modules/git.nix
2022-03-01 23:59:14 +01:00

30 lines
588 B
Nix

{
programs.git = {
enable = true;
ignores = [".vscode"];
userName = "fleaz";
userEmail = "mail@felixbreidenstein.de";
aliases = {
cpr = "!f() { git fetch origin refs/pull/$1/head && git checkout FETCH_HEAD; }; f";
};
includes = [{
condition = "gitdir:~/codemonauts/";
contents = {
user = {
email = "felix@codemonauts.com";
name = "Felix Breidenstein";
};
};
}
{
condition = "gitdir:~/kundendaten/";
contents = {
user = {
email = "felix@codemonauts.com";
name = "Felix Breidenstein";
};
};
}];
};
}