nixos-config/modules/cli/kubernetes.nix

15 lines
354 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-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
];
}