profile option finally working

This commit is contained in:
John Lancaster
2025-06-30 19:44:19 -05:00
parent 8900ac44f0
commit f829f82885
3 changed files with 23 additions and 15 deletions

18
git.nix Normal file
View File

@@ -0,0 +1,18 @@
{ 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";
})
];
}