(home/shell) add some git config + parametrize git signing key according to hostname

This commit is contained in:
Laureηt 2024-01-13 14:51:19 +01:00
parent c51938aa04
commit 9c4feaa22b
Signed by: Laurent
SSH key fingerprint: SHA256:kZEpW8cMJ54PDeCvOhzreNr4FSh6R13CMGH/POoO8DI

View file

@ -1,12 +1,34 @@
{...}: {
{config, ...}: let
sign_key =
{
"silicium" = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTvwXCT99s1EwOCeGQ28jyCAH/RBoLZza9k5I7wWdEu laurent@silicium";
}
."${config.networking.hostName}";
in {
programs.git = {
enable = true;
lfs.enable = true;
userName = "Laureηt";
userEmail = "laurent@fainsin.bzh";
userEmail = "laurent.git@fainsin.bzh";
signing = {
signByDefault = true;
key = "ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAINTvwXCT99s1EwOCeGQ28jyCAH/RBoLZza9k5I7wWdEu laurent@silicium";
key = sign_key;
};
ignores = [
".cache"
".DS_Store"
".direnv"
".venv"
"node_modules"
"result"
"result-*"
];
extraConfig = {
merge.conflictstyle = "diff3";
};
};
}