Added homemanager/modules/git.nix
This commit is contained in:
parent
eddd072490
commit
be49bc0169
|
@ -14,6 +14,7 @@ in
|
|||
modules/neovim.nix
|
||||
modules/vscode.nix
|
||||
modules/sway.nix
|
||||
modules/git.nix
|
||||
] ++ lib.optionals (config.networking.hostName == "jimbo") [
|
||||
modules/kanshi.nix
|
||||
];
|
||||
|
|
29
home-manager/modules/git.nix
Normal file
29
home-manager/modules/git.nix
Normal 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";
|
||||
};
|
||||
};
|
||||
}];
|
||||
};
|
||||
}
|
Loading…
Reference in a new issue