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 = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
userEmail = "chandler@chandlerswift.com";
|
|
||||||
userName = "Chandler Swift";
|
userName = "Chandler Swift";
|
||||||
lfs.enable = true;
|
lfs.enable = true;
|
||||||
# TODO: delta or diff-so-fancy or difftastic
|
# TODO: delta or diff-so-fancy or difftastic
|
||||||
|
|
@ -109,6 +108,16 @@
|
||||||
"venv"
|
"venv"
|
||||||
".direnv"
|
".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 = {
|
hooks = {
|
||||||
pre-commit = ../git-pre-commit-hook;
|
pre-commit = ../git-pre-commit-hook;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue