2024-06-30 03:56:48 +03:00
|
|
|
{ secret, pkgs, ... }: {
|
|
|
|
file = (pkgs.formats.gitIni { listsAsDuplicateKeys = true; }).generate "GitConfig" {
|
2024-05-04 23:15:57 +03:00
|
|
|
credential.helper = "store";
|
2024-05-14 15:57:16 +03:00
|
|
|
gpg.format = secret.crypto.sign.git.format;
|
2024-06-22 23:34:03 +03:00
|
|
|
gpg.ssh.allowedSignersFile = toString secret.crypto.sign.git.allowed;
|
2024-05-04 23:15:57 +03:00
|
|
|
init.defaultBranch = "main";
|
|
|
|
pull.rebase = true;
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
rebase.autoStash = true;
|
2024-06-30 03:56:48 +03:00
|
|
|
safe.directory = "*";
|
2024-05-12 04:22:57 +03:00
|
|
|
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
2024-05-04 23:15:57 +03:00
|
|
|
};
|
|
|
|
}
|