home-manager/tests/modules/programs/k9s/deprecated-options.nix
Lucas Wagler 020399c287
k9s: v0.29/v0.30 compatibility
- Add `skins` option for definition of multiple skin files
- Change file extension to ".yaml"
- Deprecate `skin` option (points to `skins.skin`)
2024-01-22 00:17:27 +01:00

32 lines
780 B
Nix

{ config, 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}
'';
}