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

@ -17,6 +17,12 @@
signingKey = "6E1A834E282FBD98B48069444447A19BBEDB8DBA"; signingKey = "6E1A834E282FBD98B48069444447A19BBEDB8DBA";
signByDefault = true; signByDefault = true;
}; };
k8s = {
enable = true;
kubectlPlugins = with pkgs; [
kubectl-cnpg
];
};
neovim.enable = true; neovim.enable = true;
starship.enable = true; starship.enable = true;
tmux = { tmux = {

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;
};
};
}

View file

@ -9,6 +9,7 @@
./cli/direnv ./cli/direnv
./cli/ghq/default.nix ./cli/ghq/default.nix
./cli/git ./cli/git
./cli/k8s
./cli/neovim ./cli/neovim
./cli/starship ./cli/starship
./cli/tmux ./cli/tmux