mirror of
https://github.com/nix-community/home-manager.git
synced 2026-11-03 11:20:14 +00:00
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.
26 lines
495 B
Nix
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}
|
|
'';
|
|
}
|