Add a role for tekton.

This commit is contained in:
Tom Alexander
2025-02-01 11:32:25 -05:00
parent fc400a98db
commit 1fe305576b
4 changed files with 31 additions and 2 deletions

View File

@@ -0,0 +1,29 @@
{
config,
lib,
pkgs,
...
}:
{
imports = [ ];
options.me = {
tekton.enable = lib.mkOption {
type = lib.types.bool;
default = false;
example = true;
description = "Whether we want to install tekton.";
};
};
config = lib.mkIf config.me.tekton.enable (
lib.mkMerge [
{
environment.systemPackages = with pkgs; [
tektoncd-cli
];
}
]
);
}