home: git: use 'mkAfter' for local config include

This should ensure that it will be included at the very end of the
configuration, allowing it to override any other options in the file.

Not sure that I _really_ need it, but it's tidier this way.
This commit is contained in:
Bruno BELANYI 2025-02-21 16:41:54 +00:00
parent 88944c7d1e
commit 575c416d97

View file

@ -134,30 +134,34 @@ in
};
};
includes = [
includes = lib.mkMerge [
# Multiple identities
{
condition = "gitdir:~/git/EPITA/";
contents = {
user = {
name = "Bruno BELANYI";
email = mkMailAddress "bruno.belanyi" "epita.fr";
[
{
condition = "gitdir:~/git/EPITA/";
contents = {
user = {
name = "Bruno BELANYI";
email = mkMailAddress "bruno.belanyi" "epita.fr";
};
};
};
}
{
condition = "gitdir:~/git/work/";
contents = {
user = {
name = "Bruno BELANYI";
email = mkMailAddress "ambroisie" "google.com";
}
{
condition = "gitdir:~/git/work/";
contents = {
user = {
name = "Bruno BELANYI";
email = mkMailAddress "ambroisie" "google.com";
};
};
};
}
}
]
# Local configuration, not-versioned
{
path = "config.local";
}
(lib.mkAfter [
{
path = "config.local";
}
])
];
ignores =