2024-04-09 14:26:36 +03:00
|
|
|
{ secret, ... }: {
|
2024-03-04 00:34:39 +03:00
|
|
|
programs.git = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2024-04-10 11:55:19 +03:00
|
|
|
credential.helper = "store";
|
|
|
|
init.defaultBranch = "main";
|
|
|
|
pull.rebase = true;
|
|
|
|
push.autoSetupRemote = true;
|
|
|
|
rebase.autoStash = true;
|
2024-05-12 04:22:57 +03:00
|
|
|
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
|
2024-06-22 23:34:03 +03:00
|
|
|
gpg.ssh.allowedSignersFile = toString secret.crypto.sign.git.allowed;
|
2024-05-12 04:22:57 +03:00
|
|
|
gpg.format = secret.crypto.sign.git.format;
|
2024-03-04 00:34:39 +03:00
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|