2022-07-22 06:13:20 +00:00
|
|
|
{
|
|
|
|
system ? builtins.currentSystem,
|
|
|
|
pkgs ? import ../../.. { inherit system; },
|
2023-02-09 09:57:37 +00:00
|
|
|
lib ? pkgs.lib,
|
2022-07-22 06:13:20 +00:00
|
|
|
}:
|
2023-02-09 09:57:37 +00:00
|
|
|
let
|
2023-02-14 13:23:35 +00:00
|
|
|
allK3s = lib.filterAttrs (n: _: lib.strings.hasPrefix "k3s_" n) pkgs;
|
2023-02-09 09:57:37 +00:00
|
|
|
in
|
2022-07-22 06:13:20 +00:00
|
|
|
{
|
2024-07-30 09:37:20 +00:00
|
|
|
airgap-images = lib.mapAttrs (
|
|
|
|
_: k3s: import ./airgap-images.nix { inherit system pkgs k3s; }
|
|
|
|
) allK3s;
|
2024-07-12 13:01:18 +00:00
|
|
|
auto-deploy = lib.mapAttrs (_: k3s: import ./auto-deploy.nix { inherit system pkgs k3s; }) allK3s;
|
2024-08-04 06:15:52 +00:00
|
|
|
containerd-config = lib.mapAttrs (
|
|
|
|
_: k3s: import ./containerd-config.nix { inherit system pkgs k3s; }
|
|
|
|
) allK3s;
|
2024-02-13 12:00:39 +00:00
|
|
|
etcd = lib.mapAttrs (
|
|
|
|
_: k3s:
|
|
|
|
import ./etcd.nix {
|
|
|
|
inherit system pkgs k3s;
|
|
|
|
inherit (pkgs) etcd;
|
|
|
|
}
|
|
|
|
) allK3s;
|
2024-07-19 09:26:37 +00:00
|
|
|
kubelet-config = lib.mapAttrs (
|
|
|
|
_: k3s: import ./kubelet-config.nix { inherit system pkgs k3s; }
|
|
|
|
) allK3s;
|
2023-02-09 09:57:37 +00:00
|
|
|
multi-node = lib.mapAttrs (_: k3s: import ./multi-node.nix { inherit system pkgs k3s; }) allK3s;
|
2024-07-19 09:26:37 +00:00
|
|
|
single-node = lib.mapAttrs (_: k3s: import ./single-node.nix { inherit system pkgs k3s; }) allK3s;
|
2022-07-22 06:13:20 +00:00
|
|
|
}
|