mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-11-13 12:13:36 +01:00
Add worker-1 (4 vCPU / 16 GiB) on shoryu, and worker-2 (4 vCPU / 16 GiB) plus worker-3 (2 vCPU / 8 GiB) on shushou, as microVMs. They come with a genK3sAgentModule and the per-host/output/home-manager wiring, and are labelled node-role.kubernetes.io/worker=true. The masters keep their control-plane:NoSchedule taint, so workloads land on the workers.
31 lines
920 B
Nix
31 lines
920 B
Nix
{ lib, ... }:
|
|
{
|
|
colmenaSystem = import ./colmenaSystem.nix;
|
|
macosSystem = import ./macosSystem.nix;
|
|
nixosSystem = import ./nixosSystem.nix;
|
|
|
|
attrs = import ./attrs.nix { inherit lib; };
|
|
|
|
genK3sServerModule = import ./genK3sServerModule.nix;
|
|
genK3sAgentModule = import ./genK3sAgentModule.nix;
|
|
genVmHostModule = import ./genVmHostModule.nix;
|
|
genMicrovmGuestModule = import ./genMicrovmGuestModule.nix;
|
|
|
|
# use path relative to the root of the project
|
|
relativeToRoot = lib.path.append ../.;
|
|
scanPaths =
|
|
path:
|
|
builtins.map (f: (path + "/${f}")) (
|
|
builtins.attrNames (
|
|
lib.attrsets.filterAttrs (
|
|
path: _type:
|
|
(_type == "directory") # include directories
|
|
|| (
|
|
(path != "default.nix") # ignore default.nix
|
|
&& (lib.strings.hasSuffix ".nix" path) # include .nix files
|
|
)
|
|
) (builtins.readDir path)
|
|
)
|
|
);
|
|
}
|