[home] Create explicit kubectl role

This allows work machines to enable development, while not including
non-work-related kubectl management stuffs.
This commit is contained in:
2025-11-24 11:49:23 -08:00
parent 20daebbd61
commit fc9474a7c9
5 changed files with 20 additions and 3 deletions

View File

@@ -0,0 +1,16 @@
{ config, lib, pkgs, globalInputs, system, ... }:
with lib;
let
cfg = config.home.roles.kubectl;
in
{
options.home.roles.kubectl = {
enable = mkEnableOption "Enable management tools for the homelab k3s oglenet cluster";
};
config = mkIf cfg.enable {
programs.kubectl-secure.enable = true;
};
}