sam: Conditionally configure git email

This commit is contained in:
Chandler Swift 2025-07-10 14:24:48 -05:00
parent 5105087d65
commit 31f95124c9
No known key found for this signature in database
GPG key ID: B123483B24A4D579

View file

@ -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;
}; };