Files
John Lancaster af26a2db8b git fixes
2025-11-09 22:05:09 -06:00

21 lines
586 B
Nix

{ config, lib, ... }:
{
programs.git = lib.mkMerge [
{
enable = true;
settings = {
credential.helper = "store --file ~/.git-credentials";
init.defaultBranch = "main";
push.autoSetupRemote = true;
};
}
(lib.mkIf (config.profile == "personal") {
settings.user.name = "John Lancaster";
settings.user.email = "32917998+jsl12@users.noreply.github.com";
})
(lib.mkIf (config.profile == "work") {
settings.user.name = "John Lancaster";
settings.user.email = "john.lancaster@crowncastle.com";
})
];
}