diff --git a/home/git/default.nix b/home/git/default.nix index 65d73808..60f3b223 100644 --- a/home/git/default.nix +++ b/home/git/default.nix @@ -18,6 +18,10 @@ syntax-theme = with config.programs; lib.mkIf bat.enable bat.config.theme; }; }; + attributes = [ + "*.gpg filter=gpg diff=gpg" + "*.asc filter=gpg diff=gpg" + ]; extraConfig = let user = "pixelifytica"; in { @@ -26,7 +30,10 @@ pull.rebase = false; init.defaultBranch = "main"; merge.conflictstyle = "diff3"; - diff.colorMoved = "default"; + diff = { + colorMoved = "default"; + gpg.textconv = "gpg --no-tty --decrypt"; + }; }; }; }