change git name & email depending on url

Signed-off-by: Hadi <[email protected]>
This commit is contained in:
Hadi
2026-08-27 10:39:59 +02:00
parent 3b4f1e73be
commit 6cba26599e
+17
View File
@@ -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;
};
}
];
};
}