mirror of
https://github.com/buckley310/nixos-config.git
synced 2024-11-09 18:47:02 +00:00
17 lines
459 B
Nix
17 lines
459 B
Nix
{ config, pkgs, lib, ... }:
|
|
{
|
|
programs.bash.interactiveShellInit = ''
|
|
source <(kubectl completion bash)
|
|
complete -F __start_kubectl k
|
|
'';
|
|
environment.systemPackages = with pkgs; [
|
|
kubectl
|
|
kubernetes-helm
|
|
|
|
(google-cloud-sdk.withExtraComponents
|
|
[ google-cloud-sdk.components.gke-gcloud-auth-plugin ])
|
|
|
|
# dedicated script, because bash aliases dont work with `watch`
|
|
(writeShellScriptBin "k" "exec kubectl \"$@\"")
|
|
];
|
|
}
|