feat(k8s): add kubernetes module with all needed stuff
This commit is contained in:
parent
cbb52da79b
commit
a7447fbafe
3 changed files with 33 additions and 0 deletions
26
modules/home-manager/cli/k8s/default.nix
Normal file
26
modules/home-manager/cli/k8s/default.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue