mirror of
https://github.com/anotherhadi/nixy.git
synced 2026-10-05 11:18:24 +02:00
change git name & email depending on url
Signed-off-by: Hadi <[email protected]>
This commit is contained in:
@@ -84,5 +84,22 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
configDirectory = config.var.configDirectory;
|
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;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user