Files
jsl-home/git.nix
2025-06-30 19:44:19 -05:00

18 lines
461 B
Nix

{ config, lib, ... }:
{
programs.git = lib.mkMerge [
{
enable = true;
extraConfig.credential.helper = "store --file ~/.git-credentials";
}
(lib.mkIf (config.profile == "personal") {
userName = "John Lancaster";
userEmail = "32917998+jsl12@users.noreply.github.com";
})
(lib.mkIf (config.profile == "work") {
userName = "John Lancaster";
userEmail = "john.lancaster@crowncastle.com";
})
];
}