1
0
Fork 0
nix-configuration/modules/users/common/home-manager/git-crypt.nix

17 lines
396 B
Nix
Raw Normal View History

2024-10-06 11:53:28 -04:00
# Configure Git to support git-crypt
{ pkgs, ... }:
{
programs.git = {
extraConfig = {
filter."git-crypt" = {
required = true;
smudge = "/run/current-system/sw/bin/git-crypt smudge";
clean = "/run/current-system/sw/bin/git-crypt clean";
};
diff."git-crypt" = {
textconv = "/run/current-system/sw/bin/git-crypt diff";
};
};
};
}