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
|
@ -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 = {
|
||||||
|
|
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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
|
@ -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
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue