nix/module/common/Git.nix

15 lines
364 B
Nix
Raw Normal View History

2024-04-09 14:26:36 +03:00
{ secret, ... }: {
programs.git = {
enable = true;
config = {
credential.helper = "store";
init.defaultBranch = "main";
pull.rebase = true;
push.autoSetupRemote = true;
rebase.autoStash = true;
2024-04-09 16:30:33 +03:00
user.signingkey = builtins.readFile secret.crypto.sign.key;
2024-04-09 14:26:36 +03:00
gpg.format = secret.crypto.sign.format;
};
};
}