git: add haskell identity

This commit is contained in:
Primrose 2025-06-27 14:18:34 +02:00
parent 058ed28280
commit 9e778eaad2
Signed by: primrose
GPG key ID: 4E887A4CA9714ADA

View file

@ -55,9 +55,10 @@
};
programs.git.includes = let
universityIdentity = url: {
condition = "hasconfig:remote.*.url:git@${url}:*/**";
contents = {
mkIdentity = condition: contents: {inherit condition contents;};
hostCondition = url: "hasconfig:remote.*.url:git@${url}:*/**";
universityIdentity = {
init.defaultBranch = "main";
user = {
name = "Léana CHIANG";
@ -65,9 +66,19 @@
signingKey = "0x32035DB97E777EEB";
};
};
haskellIdentity = {
init.defaultBranch = "main";
user.name = "Léana Jiang";
};
in [
(universityIdentity "gitlab.istic.univ-rennes1.fr")
(universityIdentity "gitlab2.istic.univ-rennes1.fr")
(mkIdentity
(hostCondition "gitlab.istic.univ-rennes1.fr")
universityIdentity)
(mkIdentity
(hostCondition "gitlab2.istic.univ-rennes1.fr")
universityIdentity)
(mkIdentity
(hostCondition "gitlab.haskell.org")
haskellIdentity)
];
}