rename machine type -> kind

This commit is contained in:
Pim Kunis 2024-02-29 20:13:28 +01:00
parent 45d9ab3cb7
commit 904098c877
6 changed files with 26 additions and 26 deletions

View file

@ -3,7 +3,7 @@ let
machineOpts = { ... }: {
options = {
# TODO: rename to kind?
type = lib.mkOption {
kind = lib.mkOption {
type = lib.types.enum [ "physical" "virtual" ];
description = ''
Whether this machine is physical or virtual.
@ -56,7 +56,7 @@ in
config = {
machines = {
warwick = {
type = "physical";
kind = "physical";
arch = "aarch64-linux";
isRaspberryPi = true;
@ -68,7 +68,7 @@ in
};
atlas = {
type = "physical";
kind = "physical";
arch = "x86_64-linux";
isHypervisor = true;
@ -87,7 +87,7 @@ in
};
jefke = {
type = "physical";
kind = "physical";
arch = "x86_64-linux";
isHypervisor = true;
@ -106,7 +106,7 @@ in
};
lewis = {
type = "physical";
kind = "physical";
arch = "x86_64-linux";
isHypervisor = true;
@ -129,7 +129,7 @@ in
};
hermes = {
type = "virtual";
kind = "virtual";
hypervisorName = "lewis";
nixosModule = { hypervisorConfig, ... }: {
@ -156,7 +156,7 @@ in
};
maestro = {
type = "virtual";
kind = "virtual";
hypervisorName = "atlas";
nixosModule = { config, ... }: {
@ -173,7 +173,7 @@ in
};
bancomart = {
type = "virtual";
kind = "virtual";
hypervisorName = "jefke";
nixosModule = {
@ -187,7 +187,7 @@ in
};
vpay = {
type = "virtual";
kind = "virtual";
hypervisorName = "lewis";
nixosModule = {