fork/home-manager

git clone https://git.julia.blue/fork/home-manager

Li Yangk9s: add hotkey option (#4617)fc2a8842

master
1.2 KiB54 linesraw
1{ config, ... }:
2
3{
4  programs.k9s = {
5    enable = true;
6    package = config.lib.test.mkStubPackage { };
7
8    settings = {
9      k9s = {
10        refreshRate = 2;
11        maxConnRetry = 5;
12        enableMouse = true;
13        headless = false;
14      };
15    };
16    hotkey = {
17      hotKey = {
18        shift-0 = {
19          shortCut = "Shift-0";
20          description = "Viewing pods";
21          command = "pods";
22        };
23      };
24    };
25    skin = {
26      k9s = {
27        body = {
28          fgColor = "dodgerblue";
29          bgColor = "#ffffff";
30          logoColor = "#0000ff";
31        };
32        info = {
33          fgColor = "lightskyblue";
34          sectionColor = "steelblue";
35        };
36      };
37    };
38  };
39
40  nmt.script = ''
41    assertFileExists home-files/.config/k9s/config.yml
42    assertFileContent \
43      home-files/.config/k9s/config.yml \
44      ${./example-config-expected.yml}
45    assertFileExists home-files/.config/k9s/skin.yml
46    assertFileExists home-files/.config/k9s/hotkey.yml
47    assertFileContent \
48      home-files/.config/k9s/skin.yml \
49      ${./example-skin-expected.yml}
50    assertFileContent \
51      home-files/.config/k9s/hotkey.yml \
52      ${./example-hotkey-expected.yml}
53  '';
54}