patdiff: new module

Signed-off-by: Austin Horstman <khaneliman12@gmail.com>
This commit is contained in:
Austin Horstman 2025-10-16 21:11:02 -05:00
parent 4fef8e73a6
commit c80be80282
5 changed files with 87 additions and 65 deletions

View file

@ -10,5 +10,4 @@
git-with-hooks = ./git-with-hooks.nix;
git-with-lfs = ./git-with-lfs.nix;
git-with-maintenance = ./git-with-maintenance.nix;
git-patdiff = ./git-patdiff.nix;
}

View file

@ -1,19 +0,0 @@
[commit]
gpgSign = true
[diff]
external = "@patdiff@/bin/patdiff-git-wrapper"
[gpg]
format = "openpgp"
[gpg "openpgp"]
program = "path-to-gpg"
[tag]
gpgSign = true
[user]
email = "user@example.org"
name = "John Doe"
signingKey = "00112233445566778899AABBCCDDEEFF"

View file

@ -1,20 +0,0 @@
{
programs.git = {
enable = true;
signing = {
signer = "path-to-gpg";
format = "openpgp";
key = "00112233445566778899AABBCCDDEEFF";
signByDefault = true;
};
userEmail = "user@example.org";
userName = "John Doe";
patdiff.enable = true;
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config ${./git-patdiff-expected.conf}
'';
}