2024-12-18 09:40:11 +03:00
|
|
|
{ secret, pkgs, ... }:
|
2024-10-11 23:27:07 +03:00
|
|
|
{
|
2024-12-18 09:40:11 +03:00
|
|
|
file = (pkgs.formats.gitIni { listsAsDuplicateKeys = true; }).generate "GitConfig" {
|
|
|
|
gpg.format = secret.crypto.sign.git.format;
|
|
|
|
gpg.ssh.allowedSignersFile = toString secret.crypto.sign.git.allowed;
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
pull.rebase = true;
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
rebase.autoStash = true;
|
|
|
|
safe.directory = "*";
|
|
|
|
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
|
|
|
diff.algorithm = "histogram";
|
|
|
|
};
|
2024-05-04 23:15:57 +03:00
|
|
|
}
|