mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-10 18:57:22 +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.
17 lines
449 B
Nix
17 lines
449 B
Nix
{
|
|
programs.gnome-terminal = {
|
|
enable = true;
|
|
profile = {
|
|
bad-name = { visibleName = "a"; };
|
|
"e0b782ed-6aca-44eb-8c75-62b3706b6220" = {
|
|
default = true;
|
|
visibleName = "b";
|
|
};
|
|
another-bad-name = { visibleName = "c"; };
|
|
};
|
|
};
|
|
|
|
test.asserts.assertions.expected = [''
|
|
The attribute name of a Gnome Terminal profile must be a UUID.
|
|
Incorrect profile names: another-bad-name, bad-name''];
|
|
}
|