mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-09 10:16:55 +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.
33 lines
773 B
Nix
33 lines
773 B
Nix
{ lib, options, ... }:
|
|
|
|
{
|
|
programs.k9s = {
|
|
enable = true;
|
|
skin = {
|
|
k9s = {
|
|
body = {
|
|
fgColor = "dodgerblue";
|
|
bgColor = "#ffffff";
|
|
logoColor = "#0000ff";
|
|
};
|
|
info = {
|
|
fgColor = "lightskyblue";
|
|
sectionColor = "steelblue";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
test.asserts.warnings.enable = true;
|
|
test.asserts.warnings.expected = [
|
|
"The option `programs.k9s.skin' defined in ${
|
|
lib.showFiles options.programs.k9s.skin.files
|
|
} has been renamed to `programs.k9s.skins.skin'."
|
|
];
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/k9s/skins/skin.yaml
|
|
assertFileContent \
|
|
home-files/.config/k9s/skins/skin.yaml \
|
|
${./example-skin-expected.yaml}
|
|
'';
|
|
}
|