Skip to content

Commit

Permalink
refactor(dev): add more k8s related cli utils
Browse files Browse the repository at this point in the history
  • Loading branch information
zakuciael committed Sep 15, 2024
1 parent f474bcc commit 54e31d8
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions modules/dev/kubernetes.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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";
};
};
};
Expand Down

0 comments on commit 54e31d8

Please sign in to comment.