31 lines
516 B
Nix
31 lines
516 B
Nix
{
|
|
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;
|
|
};
|
|
};
|
|
}
|