about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2023-03-05 15:50:37 -0800
committerFranck Cuny <franck@fcuny.net>2023-03-10 18:18:14 -0800
commit8e27f33ce0e6285e50208b99b0a44dbbc1595afe (patch)
tree6e1bc5fb54c10279757a51a56060443ef254a2c8
parentfix(home/wm): `programs.mako' has been renamed to `services.mako' (diff)
downloadworld-8e27f33ce0e6285e50208b99b0a44dbbc1595afe.tar.gz
home/git: diff the content for age encrypted files
Diffstat (limited to '')
-rw-r--r--.gitattributes1
-rw-r--r--home/git/default.nix4
2 files changed, 5 insertions, 0 deletions
diff --git a/.gitattributes b/.gitattributes
new file mode 100644
index 0000000..b09928b
--- /dev/null
+++ b/.gitattributes
@@ -0,0 +1 @@
+*.age binary diff=age
diff --git a/home/git/default.nix b/home/git/default.nix
index 96affa7..3e0ea08 100644
--- a/home/git/default.nix
+++ b/home/git/default.nix
@@ -26,6 +26,10 @@ in
         core.whitespace = "trailing-space,space-before-tab";
         color.ui = "true";
 
+        diff = {
+          age.textconv = "${pkgs.age}/bin/age --identity ${config.home.homeDirectory}/.age/key.txt --decrypt";
+        };
+
         gpg = {
           format = "ssh";
           ssh.allowedSignersFile = "~/.ssh/allowed_signers";