From 54e31d81a122b25289c80c16cbf2442fc24cd4e4 Mon Sep 17 00:00:00 2001 From: Krzysztof Saczuk Date: Sun, 15 Sep 2024 15:57:57 +0200 Subject: [PATCH] refactor(dev): add more k8s related cli utils --- modules/dev/kubernetes.nix | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/modules/dev/kubernetes.nix b/modules/dev/kubernetes.nix index 01aa146..eadffd9 100644 --- a/modules/dev/kubernetes.nix +++ b/modules/dev/kubernetes.nix @@ -15,18 +15,17 @@ in { config = mkIf (cfg.enable) { home-manager.users.${username} = { - home.packages = with pkgs; [kubectl]; + home.packages = with pkgs; [kubectl kubectx kustomize kubernetes-helm]; programs = { k9s = { enable = true; catppuccin.enable = true; }; - fish.shellAliases = { - k = "kubectl"; - kn = "kubectl config set-context --current --namespace"; - kc = "kubectl config use-context"; - kcr = "kubectl config unset current-context"; + fish.shellAliases = with pkgs; { + k = "${getBin kubectl}/bin/kubectl"; + kc = "${getBin kubectx}/bin/kubectx"; + kn = "${getBin kubectx}/bin/kubens"; }; }; };