mirror of
https://github.com/nix-community/home-manager
synced 2024-12-29 13:19:47 +01:00
55 lines
1.2 KiB
Nix
55 lines
1.2 KiB
Nix
{ config, ... }:
|
|
|
|
# When not specified in `programs.k9s.settings.ui.skin`,
|
|
# test that the first skin name (alphabetically) is used in the config file
|
|
|
|
{
|
|
programs.k9s = {
|
|
enable = true;
|
|
settings = {
|
|
k9s = {
|
|
refreshRate = 2;
|
|
maxConnRetry = 5;
|
|
enableMouse = true;
|
|
headless = false;
|
|
};
|
|
};
|
|
skins = {
|
|
"default" = {
|
|
k9s = {
|
|
body = {
|
|
fgColor = "dodgerblue";
|
|
bgColor = "#ffffff";
|
|
logoColor = "#0000ff";
|
|
};
|
|
info = {
|
|
fgColor = "lightskyblue";
|
|
sectionColor = "steelblue";
|
|
};
|
|
};
|
|
};
|
|
"alt-skin" = {
|
|
k9s = {
|
|
body = {
|
|
fgColor = "orangered";
|
|
bgColor = "#ffffff";
|
|
logoColor = "#0000ff";
|
|
};
|
|
info = {
|
|
fgColor = "red";
|
|
sectionColor = "mediumvioletred";
|
|
};
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
test.stubs.k9s = { };
|
|
|
|
nmt.script = ''
|
|
assertFileExists home-files/.config/k9s/config.yaml
|
|
assertFileContent \
|
|
home-files/.config/k9s/config.yaml \
|
|
${./partial-skin-settings-expected.yaml}
|
|
'';
|
|
}
|