feat(k8s): add kubernetes module with all needed stuff

This commit is contained in:
Yorick Barbanneau 2025-07-06 22:18:20 +02:00
parent cbb52da79b
commit a7447fbafe
No known key found for this signature in database
GPG key ID: 4447A19BBEDB8DBA
3 changed files with 33 additions and 0 deletions

View file

@ -0,0 +1,26 @@
{ lib, config, pkgs, ... }:
with lib;
let
cfg = config.modules.cli.k8s;
in
{
options.modules.cli.k8s = {
enable = mkEnableOption "Install k8s utils";
kubectlPlugins = mkOption {
type = types.listOf types.package;
default = [];
description = "activate signing by default";
};
};
config = mkIf cfg.enable {
home.packages = with pkgs; [
kubectl
kubecm
] ++ cfg.kubectlPlugins;
programs.k9s = {
enable = true;
};
};
}