mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-09 20:39:18 -08:00
mixed: gpg fixes, refactoring
This commit is contained in:
parent
53eed4454d
commit
1ec876812e
50 changed files with 235 additions and 183 deletions
28
kat/shell/git.nix
Normal file
28
kat/shell/git.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue