refactor
This commit is contained in:
parent
66c05f9093
commit
45d6f4b0f3
205 changed files with 9040 additions and 342 deletions
31
modules/nixos/tools/k8s/default.nix
Normal file
31
modules/nixos/tools/k8s/default.nix
Normal file
|
@ -0,0 +1,31 @@
|
|||
{ options, config, lib, pkgs, ... }:
|
||||
|
||||
with lib;
|
||||
with lib.plusultra;
|
||||
let cfg = config.plusultra.tools.k8s;
|
||||
in
|
||||
{
|
||||
options.plusultra.tools.k8s = with types; {
|
||||
enable =
|
||||
mkBoolOpt false "Whether or not to enable common Kubernetes utilities.";
|
||||
};
|
||||
|
||||
config = mkIf cfg.enable {
|
||||
programs.zsh.shellAliases = {
|
||||
k = "kubecolor";
|
||||
kubectl = "kubecolor";
|
||||
kc = "kubectx";
|
||||
kn = "kubens";
|
||||
ks = "kubeseal";
|
||||
};
|
||||
|
||||
environment.systemPackages = with pkgs; [
|
||||
kubectl
|
||||
kubectx
|
||||
kubeseal
|
||||
kubecolor
|
||||
kubernetes-helm
|
||||
helmfile
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue