2024-10-11 23:27:07 +03:00
|
|
|
{ secret, pkgs, ... }:
|
|
|
|
{
|
|
|
|
file = (pkgs.formats.gitIni { listsAsDuplicateKeys = true; }).generate "GitConfig" {
|
|
|
|
# credential.helper = "store";
|
|
|
|
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;
|
|
|
|
};
|
2024-05-04 23:15:57 +03:00
|
|
|
}
|