Skip to content

Commit ae93e2a

Browse files
authored
feat: additional utilities for flake (#28)
Add cmctl, k9s, lazydocker and btop. Also configure command completion for cnpg plugin since its already done for kubectl. Signed-off-by: Jeremy Schneider <[email protected]>
1 parent a71255f commit ae93e2a

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

flake.nix

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,13 @@
1515
shellHook = ''
1616
# Setup 'k' as a 'kubectl' alias
1717
source <(kubectl completion bash)
18-
1918
alias k=kubectl
2019
complete -o default -F __start_kubectl k
20+
21+
# Setup 'kc' as a 'kubectl cnpg' alias
22+
source <(kubectl cnpg completion bash)
23+
alias kc="kubectl cnpg"
24+
complete -o default -F __start_kubectl-cnpg kc
2125
'';
2226

2327
packages = [
@@ -28,6 +32,10 @@
2832
pkgs.curl
2933
pkgs.kubectl-cnpg
3034
pkgs.kubectl-view-secret
35+
pkgs.cmctl
36+
pkgs.k9s
37+
pkgs.lazydocker
38+
pkgs.btop
3139
];
3240
};
3341
});

0 commit comments

Comments
 (0)