mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 02:36:54 +00:00
Instead of having to manually stub packages that should not be downloaded we instead automatically stub all packages (except a small list of whitelisted ones). Tests can re-introduce the real package by using the `realPkgs` module argument.
22 lines
561 B
Nix
22 lines
561 B
Nix
{
|
|
programs.git = {
|
|
enable = true;
|
|
extraConfig = ''
|
|
This can be anything.
|
|
'';
|
|
userEmail = "user@example.org";
|
|
userName = "John Doe";
|
|
};
|
|
|
|
test.asserts.warnings.expected = [''
|
|
Using programs.git.extraConfig as a string option is
|
|
deprecated and will be removed in the future. Please
|
|
change to using it as an attribute set instead.
|
|
''];
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/git/config
|
|
assertFileContent home-files/.config/git/config \
|
|
${./git-with-str-extra-config-expected.conf}
|
|
'';
|
|
}
|