feat(k8s): declare 'talos' modules
This commit is contained in:
1 parent
48360e49c4
commit
ea5309eff1
7 files changed
+89
-7
No files matched your search
@@ -40,7 +40,12 @@
|
||||
gitea.enable = true;
|
||||
github.enable = true;
|
||||
};
|
||||
k8s.k9s.enable = true;
|
||||
k8s = {
|
||||
enable = true;
|
||||
k9s.enable = true;
|
||||
talos.enable = true;
|
||||
};
|
||||
keyboard.vortexCore.enable = true;
|
||||
keepassxc.enable = true;
|
||||
music.enable = true;
|
||||
newsboat.enable = true;
|
||||
|
||||
@@ -24,12 +24,19 @@ in
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
talos = {
|
||||
enable = lib.mkOption {
|
||||
default = false;
|
||||
type = lib.types.bool;
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
imports = [
|
||||
./crossplane.nix
|
||||
./helm.nix
|
||||
./k9s.nix
|
||||
./talos.nix
|
||||
];
|
||||
|
||||
config = lib.mkIf cfg.enable {
|
||||
|
||||
@@ -0,0 +1,12 @@
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
{
|
||||
config = lib.mkIf config.k8s.talos.enable {
|
||||
home.packages = [ pkgs.talosctl ];
|
||||
};
|
||||
}
|
||||
Reference in new issue
Block a user