niksos/hosts/work/git.nix
work 8236ec51ed
change forgejo work account email to fake one
hopefully this will make it possible to have signed commits
previously I tried using the protonmail one but I can't assign that to
both the work and my personal account and I'm for sure not leaking my
work email

forgejo by default allows these fake emails so hopefully this works
2024-08-28 22:36:37 +02:00

21 lines
595 B
Nix

{
inputs,
...
}: {
poz.programs.git = {
enable = true;
inherit (inputs.work-secrets.git) userName userEmail signingKey;
includes = [
{
condition = "hasconfig:remote.*.url:jacekpoz:*/**";
contents = {
user = {
email = "work@jacek.poz";
name = "work";
signingKey = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIDmeOJA8S8P+Q8wgF57v8ygpVkj4qBp6iuclNGxeFv75";
};
};
}
];
};
}