nix/module/android/Git.nix

13 lines
439 B
Nix
Raw Normal View History

{ secret, ... }: {
config = {
credential.helper = "store";
2024-05-14 15:57:16 +03:00
gpg.format = secret.crypto.sign.git.format;
2024-05-12 04:22:57 +03:00
gpg.ssh.allowedSignersFile = toString(secret.crypto.sign.git.allowed);
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;
};
}