feat(k8s): declare 'crossplane' module

This commit is contained in:
hektor committed 2026-10-31 11:57:24 +01:00
1 parent 983710aa37
commit 1f3976a77f
4 files changed
+34 -1

No files matched your search

+12
View File
@@ -0,0 +1,12 @@
{
config,
lib,
pkgs,
...
}:
{
config = lib.mkIf config.k8s.crossplane.enable {
home.packages = [ pkgs.upbound ];
};
}
+7 -1
View File
@@ -18,9 +18,16 @@ in
k9s = { k9s = {
enable = lib.mkEnableOption "k9s"; enable = lib.mkEnableOption "k9s";
}; };
crossplane = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
};
}; };
imports = [ imports = [
./crossplane.nix
./helm.nix ./helm.nix
./k9s.nix ./k9s.nix
]; ];
@@ -36,7 +43,6 @@ in
kubectl kubectl
kustomize kustomize
opentofu opentofu
upbound
]; ];
programs.kubecolor = { programs.kubecolor = {
+12
View File
@@ -0,0 +1,12 @@
{ config, lib, ... }:
{
options.k8s.crossplane.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
config = lib.mkIf config.k8s.crossplane.enable {
nixpkgs.allowedUnfree = [ "upbound" ];
};
}
+3
View File
@@ -0,0 +1,3 @@
{
imports = [ ./crossplane.nix ];
}