nixos-config/modules/cli/kubernetes.nix
2023-12-21 01:38:32 -05:00

15 lines
351 B
Nix

{ pkgs, ... }:
{
programs.bash.interactiveShellInit = ''
source <(kubectl completion bash)
complete -F __start_kubectl k
'';
environment.systemPackages = with pkgs; [
kubectl
kubernetes-helm
stern
# dedicated script, because bash aliases dont work with `watch`
(writeShellScriptBin "k" "exec kubectl \"$@\"")
];
}