feat(k8s): declare 'crossplane' module
This commit is contained in:
1 parent
983710aa37
commit
1f3976a77f
4 files changed
+34
-1
No files matched your search
@@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
config,
|
||||||
|
lib,
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
|
||||||
|
{
|
||||||
|
config = lib.mkIf config.k8s.crossplane.enable {
|
||||||
|
home.packages = [ pkgs.upbound ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -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 = {
|
||||||
|
|||||||
@@ -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" ];
|
||||||
|
};
|
||||||
|
}
|
||||||
@@ -0,0 +1,3 @@
|
|||||||
|
{
|
||||||
|
imports = [ ./crossplane.nix ];
|
||||||
|
}
|
||||||
Reference in new issue
Block a user