Files
jsl-home/homeManagerModules/git.nix
John Lancaster 09dee82f8d git updates
2025-10-29 14:05:54 -05:00

21 lines
548 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") {
user.name = "John Lancaster";
user.email = "32917998+jsl12@users.noreply.github.com";
})
(lib.mkIf (config.profile == "work") {
userName = "John Lancaster";
userEmail = "john.lancaster@crowncastle.com";
})
];
}