mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 06:39:14 +00:00
git: add haskell identity
This commit is contained in:
parent
058ed28280
commit
9e778eaad2
1 changed files with 22 additions and 11 deletions
|
|
@ -55,19 +55,30 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.git.includes = let
|
programs.git.includes = let
|
||||||
universityIdentity = url: {
|
mkIdentity = condition: contents: {inherit condition contents;};
|
||||||
condition = "hasconfig:remote.*.url:git@${url}:*/**";
|
hostCondition = url: "hasconfig:remote.*.url:git@${url}:*/**";
|
||||||
contents = {
|
|
||||||
init.defaultBranch = "main";
|
universityIdentity = {
|
||||||
user = {
|
init.defaultBranch = "main";
|
||||||
name = "Léana CHIANG";
|
user = {
|
||||||
email = "leana.chiang@etudiant.univ-rennes1.fr";
|
name = "Léana CHIANG";
|
||||||
signingKey = "0x32035DB97E777EEB";
|
email = "leana.chiang@etudiant.univ-rennes1.fr";
|
||||||
};
|
signingKey = "0x32035DB97E777EEB";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
haskellIdentity = {
|
||||||
|
init.defaultBranch = "main";
|
||||||
|
user.name = "Léana Jiang";
|
||||||
|
};
|
||||||
in [
|
in [
|
||||||
(universityIdentity "gitlab.istic.univ-rennes1.fr")
|
(mkIdentity
|
||||||
(universityIdentity "gitlab2.istic.univ-rennes1.fr")
|
(hostCondition "gitlab.istic.univ-rennes1.fr")
|
||||||
|
universityIdentity)
|
||||||
|
(mkIdentity
|
||||||
|
(hostCondition "gitlab2.istic.univ-rennes1.fr")
|
||||||
|
universityIdentity)
|
||||||
|
(mkIdentity
|
||||||
|
(hostCondition "gitlab.haskell.org")
|
||||||
|
haskellIdentity)
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue