Added homemanager/modules/git.nix

This commit is contained in:
fleaz 2022-03-01 23:59:14 +01:00
parent eddd072490
commit be49bc0169
2 changed files with 30 additions and 0 deletions

View file

@ -14,6 +14,7 @@ in
modules/neovim.nix modules/neovim.nix
modules/vscode.nix modules/vscode.nix
modules/sway.nix modules/sway.nix
modules/git.nix
] ++ lib.optionals (config.networking.hostName == "jimbo") [ ] ++ lib.optionals (config.networking.hostName == "jimbo") [
modules/kanshi.nix modules/kanshi.nix
]; ];

View file

@ -0,0 +1,29 @@
{
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";
};
};
}];
};
}