Files
home-manager/tests/modules/programs/git/git-credential-integrations.nix
Austin Horstman 30db803c98 git: support ordered settings fragments
Allow programs.git.settings to keep its existing attrset shorthand while also accepting an ordered list of fragments for repeated sections and order-sensitive config. Cover the new list form with a focused Git config snapshot test.
2026-04-23 12:13:58 -05:00

26 lines
495 B
Nix

{
programs.gh = {
enable = true;
gitCredentialHelper = {
enable = true;
hosts = [
"https://github.com"
"https://github.example.com"
];
};
};
programs.git-credential-oauth.enable = true;
programs.git = {
enable = true;
signing.format = null;
};
nmt.script = ''
assertFileExists home-files/.config/git/config
assertFileContent home-files/.config/git/config \
${./git-credential-integrations-expected.conf}
'';
}