nixos-config/modules/cli/kubernetes.nix
2023-06-17 01:48:04 -04:00

14 lines
354 B
Nix

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