diff --git a/hosts/work/home.nix b/hosts/work/home.nix index dfe4fd69..c266b5e3 100644 --- a/hosts/work/home.nix +++ b/hosts/work/home.nix @@ -84,5 +84,22 @@ enable = true; configDirectory = config.var.configDirectory; }; + + git.includes = [ + { + condition = "hasconfig:remote.*.url:**"; + contents.user = { + name = "Hadrien"; + email = "hadi@example.fr"; + }; + } + { + condition = "hasconfig:remote.*.url:git@github.com:**"; + contents.user = { + name = config.var.git.username; + email = config.var.git.email; + }; + } + ]; }; }