Install kubectl using Nix
Install kubectl and the OIDC login helpers from nixpkgs with nix-env.
1 min read
Updated
Install kubectl and the OIDC login helpers from nixpkgs with a single nix-env command, which is handy on machines where you do not want a global package manager change. The command is below.
install.sh
bash
nix-env -iA nixpkgs.kubectl nixpkgs.kubelogin nixpkgs.kubelogin-oidc