2024-02-28 23:28:38 +00:00
|
|
|
{ lib, ... }:
|
|
|
|
let
|
2024-02-29 19:51:52 +00:00
|
|
|
machineOpts = { config, ... }: {
|
2024-02-28 23:28:38 +00:00
|
|
|
options = {
|
|
|
|
arch = lib.mkOption {
|
|
|
|
default = null;
|
|
|
|
type = with lib.types; nullOr str;
|
|
|
|
description = ''
|
|
|
|
CPU architecture of this machine.
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
|
|
|
|
isRaspberryPi = lib.mkOption {
|
|
|
|
default = false;
|
|
|
|
type = lib.types.bool;
|
2024-01-31 21:11:28 +00:00
|
|
|
};
|
|
|
|
|
2024-02-28 23:28:38 +00:00
|
|
|
nixosModule = lib.mkOption {
|
|
|
|
default = { ... }: { };
|
|
|
|
type = lib.types.anything;
|
|
|
|
description = ''
|
|
|
|
Customized configuration for this machine in the form of a NixOS module.
|
|
|
|
'';
|
2023-11-25 20:00:21 +00:00
|
|
|
};
|
2024-05-24 21:40:19 +00:00
|
|
|
|
|
|
|
kubernetesNodeLabels = lib.mkOption {
|
|
|
|
default = null;
|
|
|
|
type = with lib.types; nullOr attrs;
|
|
|
|
description = ''
|
|
|
|
Any labels to add to the Kubernetes node.
|
|
|
|
'';
|
|
|
|
};
|
2023-11-25 20:00:21 +00:00
|
|
|
};
|
|
|
|
};
|
2024-02-28 23:28:38 +00:00
|
|
|
in
|
|
|
|
{
|
2024-02-29 19:30:32 +00:00
|
|
|
imports = [
|
|
|
|
./warwick.nix
|
|
|
|
./atlas.nix
|
|
|
|
./jefke.nix
|
|
|
|
./lewis.nix
|
2024-08-30 15:49:11 +00:00
|
|
|
# ./talos.nix
|
|
|
|
# ./pikvm.nix
|
2024-02-29 19:30:32 +00:00
|
|
|
];
|
|
|
|
|
2024-02-28 23:28:38 +00:00
|
|
|
options = {
|
|
|
|
machines = lib.mkOption {
|
|
|
|
type = with lib.types; attrsOf (submodule machineOpts);
|
|
|
|
};
|
|
|
|
};
|
2023-11-15 12:06:59 +00:00
|
|
|
}
|