2023-11-15 13:06:59 +01:00
|
|
|
{
|
2024-01-31 22:11:28 +01:00
|
|
|
atlas = {
|
|
|
|
type = "physical";
|
|
|
|
|
|
|
|
nixosModule.lab = {
|
|
|
|
storage = {
|
|
|
|
osDisk = "/dev/sda";
|
|
|
|
dataPartition = "/dev/nvme0n1p1";
|
|
|
|
};
|
|
|
|
|
|
|
|
ssh = {
|
|
|
|
useCertificates = true;
|
|
|
|
hostCert = builtins.readFile ./certificates/atlas/host_ed25519.crt;
|
|
|
|
userCert = builtins.readFile ./certificates/atlas/user_ed25519.crt;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-11-15 13:06:59 +01:00
|
|
|
jefke = {
|
2024-01-28 11:48:13 +01:00
|
|
|
type = "physical";
|
2023-12-17 16:22:22 +01:00
|
|
|
|
2024-01-28 12:55:58 +01:00
|
|
|
nixosModule = {
|
|
|
|
lab = {
|
|
|
|
storage = {
|
|
|
|
osDisk = "/dev/sda";
|
|
|
|
dataPartition = "/dev/nvme0n1p1";
|
|
|
|
};
|
|
|
|
|
|
|
|
ssh = {
|
|
|
|
useCertificates = true;
|
2024-01-31 22:11:28 +01:00
|
|
|
hostCert = builtins.readFile ./certificates/jefke/host_ed25519.crt;
|
|
|
|
userCert = builtins.readFile ./certificates/jefke/user_ed25519.crt;
|
2024-01-28 12:55:58 +01:00
|
|
|
};
|
2023-11-25 21:00:21 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-12-25 19:22:22 +01:00
|
|
|
lewis = {
|
2024-01-28 11:48:13 +01:00
|
|
|
type = "physical";
|
2023-12-25 19:22:22 +01:00
|
|
|
|
2024-01-30 22:32:09 +01:00
|
|
|
nixosModule.lab = {
|
2024-01-31 22:11:28 +01:00
|
|
|
backups.enable = true;
|
|
|
|
data-sharing.enable = true;
|
|
|
|
networking.dmz.allowConnectivity = true;
|
2023-12-25 19:22:22 +01:00
|
|
|
|
2024-01-30 22:32:09 +01:00
|
|
|
storage = {
|
|
|
|
osDisk = "/dev/sda";
|
|
|
|
dataPartition = "/dev/nvme0n1p1";
|
|
|
|
};
|
2024-01-17 21:28:15 +01:00
|
|
|
|
2024-01-30 22:32:09 +01:00
|
|
|
ssh = {
|
|
|
|
useCertificates = true;
|
2024-01-31 22:11:28 +01:00
|
|
|
hostCert = builtins.readFile ./certificates/lewis/host_ed25519.crt;
|
|
|
|
userCert = builtins.readFile ./certificates/lewis/user_ed25519.crt;
|
2023-12-25 19:22:22 +01:00
|
|
|
};
|
2024-01-28 11:48:13 +01:00
|
|
|
};
|
|
|
|
};
|
2023-12-25 19:22:22 +01:00
|
|
|
|
2024-02-06 22:03:25 +01:00
|
|
|
# TODO: make leases persistent!
|
2024-01-29 22:21:15 +01:00
|
|
|
hermes = {
|
|
|
|
type = "virtual";
|
|
|
|
hypervisorName = "lewis";
|
2024-01-30 22:32:09 +01:00
|
|
|
|
|
|
|
nixosModule = { config, ... }: {
|
2024-01-29 22:21:15 +01:00
|
|
|
lab = {
|
2024-01-31 21:58:23 +01:00
|
|
|
networking.dmz.services.enable = true;
|
2024-01-30 22:32:09 +01:00
|
|
|
|
|
|
|
vm = {
|
2024-02-04 17:16:41 +01:00
|
|
|
# TODO: would be cool to create a check that a mac address is only ever assigned to one VM.
|
2024-02-01 22:57:18 +01:00
|
|
|
id = 7;
|
2024-01-30 22:32:09 +01:00
|
|
|
staticNetworking = true;
|
2024-01-31 21:58:23 +01:00
|
|
|
staticIPv4 = config.lab.networking.dmz.ipv4.services;
|
|
|
|
staticIPv6 = config.lab.networking.dmz.ipv6.services;
|
2024-02-07 23:15:48 +01:00
|
|
|
|
|
|
|
shares = [{
|
|
|
|
name = "dnsmasq";
|
|
|
|
mountPoint = "/var/lib/dnsmasq";
|
|
|
|
}];
|
2024-01-30 22:32:09 +01:00
|
|
|
};
|
2024-01-29 22:21:15 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-04 17:16:41 +01:00
|
|
|
|
2024-02-08 23:44:36 +01:00
|
|
|
maestro = {
|
2024-02-04 17:16:41 +01:00
|
|
|
type = "virtual";
|
2024-02-06 22:03:25 +01:00
|
|
|
hypervisorName = "atlas";
|
2024-02-04 17:16:41 +01:00
|
|
|
|
2024-02-08 23:44:36 +01:00
|
|
|
nixosModule = { config, ... }: {
|
|
|
|
microvm.balloonMem = 7680;
|
|
|
|
|
2024-02-07 23:15:48 +01:00
|
|
|
lab = {
|
|
|
|
dockerSwarm.enable = true;
|
2024-02-04 17:16:41 +01:00
|
|
|
|
2024-02-07 23:15:48 +01:00
|
|
|
vm = {
|
|
|
|
id = 1;
|
|
|
|
};
|
2024-02-04 17:16:41 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-08 23:44:36 +01:00
|
|
|
bancomart = {
|
2024-02-04 17:16:41 +01:00
|
|
|
type = "virtual";
|
2024-02-06 22:03:25 +01:00
|
|
|
hypervisorName = "jefke";
|
2024-02-04 17:16:41 +01:00
|
|
|
|
2024-02-08 23:44:36 +01:00
|
|
|
nixosModule = {
|
|
|
|
microvm.balloonMem = 7680;
|
|
|
|
|
2024-02-07 23:15:48 +01:00
|
|
|
lab = {
|
|
|
|
dockerSwarm.enable = true;
|
|
|
|
vm.id = 2;
|
2024-02-06 22:03:25 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2024-02-08 23:44:36 +01:00
|
|
|
vpay = {
|
2024-02-06 22:03:25 +01:00
|
|
|
type = "virtual";
|
|
|
|
hypervisorName = "lewis";
|
|
|
|
|
2024-02-08 23:44:36 +01:00
|
|
|
nixosModule = {
|
|
|
|
microvm.balloonMem = 5632;
|
|
|
|
|
2024-02-07 23:15:48 +01:00
|
|
|
lab = {
|
|
|
|
dockerSwarm.enable = true;
|
|
|
|
vm.id = 3;
|
2024-02-04 17:16:41 +01:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-15 13:06:59 +01:00
|
|
|
}
|