sam: Conditionally configure git email
This commit is contained in:
parent
5105087d65
commit
31f95124c9
1 changed files with 10 additions and 1 deletions
|
|
@ -85,7 +85,6 @@
|
|||
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userEmail = "chandler@chandlerswift.com";
|
||||
userName = "Chandler Swift";
|
||||
lfs.enable = true;
|
||||
# TODO: delta or diff-so-fancy or difftastic
|
||||
|
|
@ -109,6 +108,16 @@
|
|||
"venv"
|
||||
".direnv"
|
||||
];
|
||||
includes = [
|
||||
{
|
||||
condition = "gitdir:/home/chandler/work/";
|
||||
contents.user.email = "chandler.swift@pearson.com";
|
||||
}
|
||||
{
|
||||
condition = "gitdir:/home/chandler/projects/";
|
||||
contents.user.email = "chandler+pearson@chandlerswift.com";
|
||||
}
|
||||
];
|
||||
hooks = {
|
||||
pre-commit = ../git-pre-commit-hook;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue