nix/home/config/git/default.nix

14 lines
556 B
Nix
Raw Normal View History

{ secret, pkgs, ... }: {
file = (pkgs.formats.gitIni { listsAsDuplicateKeys = true; }).generate "GitConfig" {
2024-08-24 20:39:00 +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;
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
rebase.autoStash = true;
safe.directory = "*";
2024-05-12 04:22:57 +03:00
user.signingkey = builtins.readFile secret.crypto.sign.git.key;
};
}