home

My NixOS systems configurations.
Log | Files | Refs | LICENSE

kubernetes.nix (546B)


      1 { config, lib, pkgs, ... }:
      2 
      3 with lib;
      4 let
      5   knd = pkgs.writeScriptBin "knd" ''
      6     #!${pkgs.stdenv.shell}
      7     ${pkgs.kubectl}/bin/kubectl get namespaces -o name | ${pkgs.fzf}/bin/fzf --multi | xargs kubectl delete
      8   '';
      9 in
     10 {
     11   home.packages = with pkgs; [
     12     kail
     13     kubectl
     14     kustomize
     15     kind
     16     ko
     17     crane
     18     krew
     19     kss
     20     # our own scripts
     21     knd
     22     # bekind
     23     my.chmouzies.kubernetes
     24     # kubectx
     25     kubelogin-oidc
     26   ];
     27   programs.zsh.initExtra = ''
     28     alias -g SK="|snazy -s --kail --kail-prefix-format='{pod}'"
     29   '';
     30 }