feat(k8s): declare 'talos' modules

This commit is contained in:
hektor committed 2026-10-31 15:37:11 +01:00
1 parent 48360e49c4
commit ea5309eff1
7 files changed
+89 -7

No files matched your search

+34 -1
View File
@@ -1,3 +1,36 @@
{ config, lib, ... }:
{
imports = [ ./crossplane.nix ];
imports = [
./crossplane.nix
./talos.nix
];
options.k8s = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
crossplane.enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
talos = {
enable = lib.mkOption {
default = false;
type = lib.types.bool;
};
platform = lib.mkOption {
default = "qemu";
type = lib.types.enum [
"docker"
"qemu"
];
};
};
};
config = lib.mkIf config.k8s.enable {
k8s.talos.enable = lib.mkDefault true;
};
}