feat: Convert to module options

This commit is contained in:
Jiří Štefka 2025-04-19 23:07:40 +02:00
parent 3792d15fd0
commit 44bb5b5c8c
Signed by: jiriks74
GPG key ID: 1D5E30D3DB2264DE
9 changed files with 420 additions and 315 deletions

35
modules/kubernetes.nix Normal file
View file

@ -0,0 +1,35 @@
{
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
}
'';
};
home.packages = with pkgs; [
minikube
kubectl
kubectx
k9s
];
};
}