diff options
author | Franck Cuny <franck@fcuny.net> | 2023-03-05 15:50:37 -0800 |
---|---|---|
committer | Franck Cuny <franck@fcuny.net> | 2023-03-10 18:18:14 -0800 |
commit | 8e27f33ce0e6285e50208b99b0a44dbbc1595afe (patch) | |
tree | 6e1bc5fb54c10279757a51a56060443ef254a2c8 | |
parent | fix(home/wm): `programs.mako' has been renamed to `services.mako' (diff) | |
download | world-8e27f33ce0e6285e50208b99b0a44dbbc1595afe.tar.gz |
home/git: diff the content for age encrypted files
-rw-r--r-- | .gitattributes | 1 | ||||
-rw-r--r-- | home/git/default.nix | 4 |
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"; |