nixos-config/modules/cli/kubernetes.nix

16 lines
364 B
Nix
Raw Normal View History

2023-04-30 06:11:27 +00:00
{ config, pkgs, lib, ... }:
{
programs.bash.interactiveShellInit = ''
source <(kubectl completion bash)
complete -F __start_kubectl k
'';
2023-05-22 06:52:56 +00:00
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
2023-06-30 05:15:55 +00:00
stern
2023-05-22 06:52:56 +00:00
2023-05-31 01:24:17 +00:00
# dedicated script, because bash aliases dont work with `watch`
(writeShellScriptBin "k" "exec kubectl \"$@\"")
2023-04-30 06:11:27 +00:00
];
}