zsh.nix/modules/kubernetes.nix
jiriks74 a803808fd2
Some checks failed
Perform checks / nix_flake_check (push) Failing after 9m42s
Perform checks / formatting (push) Failing after 10m6s
feat(kubernetes): Add helm package, kubectl-aliases plugin
2025-09-05 12:50:49 +02:00

40 lines
800 B
Nix

{
pkgs,
config,
lib,
...
}: let
cfg = config.jiriks74.zsh;
in {
meta.maintainers = with lib.maintainers; [jiriks74];
options.jiriks74.zsh.kubernetes = lib.mkEnableOption "Install Kubernetes packages including those for local development";
config = lib.mkIf cfg.kubernetes {
services.podman.enable = true;
home.file.minikube = {
enable = true;
target = ".minikube/config/config.json";
text = ''
{
"container-runtime": "containerd",
"driver": "podman",
"rootless": true
}
'';
};
programs.zsh.antidote.plugins = [
"ahmetb/kubectl-aliases kind:defer path:.kubectl_aliases"
];
home.packages = with pkgs; [
minikube
kubectl
helm
kubectx
k9s
];
};
}