mixed: gpg fixes, refactoring

This commit is contained in:
Kat Inskip 2023-01-17 15:32:14 -05:00
parent 53eed4454d
commit 1ec876812e
Signed by: kat
GPG key ID: 465E64DECEA8CF0F
50 changed files with 235 additions and 183 deletions

28
kat/shell/git.nix Normal file
View file

@ -0,0 +1,28 @@
{pkgs,tree,...}: let
kat = import tree.kat.user.data;
in {
home.packages = with pkgs; [
gitAndTools.git-remote-gcrypt
git-crypt
git-revise
];
programs.git = {
inherit (kat) userName userEmail;
package = pkgs.gitAndTools.gitFull;
enable = true;
extraConfig = {
init = {defaultBranch = "main";};
protocol.gcrypt.allow = "always";
annex = {
autocommit = false;
backend = "BLAKE2B512";
synccontent = true;
};
};
signing = {
inherit (kat) key;
signByDefault = true;
};
};
}