2023-11-15 12:06:59 +00:00
|
|
|
{
|
2024-01-31 21:11:28 +00: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 12:06:59 +00:00
|
|
|
jefke = {
|
2024-01-28 10:48:13 +00:00
|
|
|
type = "physical";
|
2023-12-17 15:22:22 +00:00
|
|
|
|
2024-01-28 11:55:58 +00:00
|
|
|
nixosModule = {
|
|
|
|
lab = {
|
|
|
|
terraformDatabase.enable = true;
|
|
|
|
|
|
|
|
storage = {
|
|
|
|
osDisk = "/dev/sda";
|
|
|
|
dataPartition = "/dev/nvme0n1p1";
|
|
|
|
};
|
|
|
|
|
|
|
|
ssh = {
|
|
|
|
useCertificates = true;
|
2024-01-31 21:11:28 +00:00
|
|
|
hostCert = builtins.readFile ./certificates/jefke/host_ed25519.crt;
|
|
|
|
userCert = builtins.readFile ./certificates/jefke/user_ed25519.crt;
|
2024-01-28 11:55:58 +00:00
|
|
|
};
|
2023-11-25 20:00:21 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2023-12-25 18:22:22 +00:00
|
|
|
lewis = {
|
2024-01-28 10:48:13 +00:00
|
|
|
type = "physical";
|
2023-12-25 18:22:22 +00:00
|
|
|
|
2024-01-30 21:32:09 +00:00
|
|
|
nixosModule.lab = {
|
2024-01-31 21:11:28 +00:00
|
|
|
backups.enable = true;
|
|
|
|
data-sharing.enable = true;
|
|
|
|
networking.dmz.allowConnectivity = true;
|
2023-12-25 18:22:22 +00:00
|
|
|
|
2024-01-30 21:32:09 +00:00
|
|
|
storage = {
|
|
|
|
osDisk = "/dev/sda";
|
|
|
|
dataPartition = "/dev/nvme0n1p1";
|
|
|
|
};
|
2024-01-17 20:28:15 +00:00
|
|
|
|
2024-01-30 21:32:09 +00:00
|
|
|
ssh = {
|
|
|
|
useCertificates = true;
|
2024-01-31 21:11:28 +00:00
|
|
|
hostCert = builtins.readFile ./certificates/lewis/host_ed25519.crt;
|
|
|
|
userCert = builtins.readFile ./certificates/lewis/user_ed25519.crt;
|
2023-12-25 18:22:22 +00:00
|
|
|
};
|
2024-01-28 10:48:13 +00:00
|
|
|
};
|
|
|
|
};
|
2023-12-25 18:22:22 +00:00
|
|
|
|
2024-02-06 21:03:25 +00:00
|
|
|
# TODO: make leases persistent!
|
2024-01-29 21:21:15 +00:00
|
|
|
hermes = {
|
|
|
|
type = "virtual";
|
|
|
|
hypervisorName = "lewis";
|
2024-01-30 21:32:09 +00:00
|
|
|
|
|
|
|
nixosModule = { config, ... }: {
|
2024-01-29 21:21:15 +00:00
|
|
|
lab = {
|
2024-01-31 20:58:23 +00:00
|
|
|
networking.dmz.services.enable = true;
|
2024-01-30 21:32:09 +00:00
|
|
|
|
|
|
|
vm = {
|
2024-02-04 16:16:41 +00:00
|
|
|
# TODO: would be cool to create a check that a mac address is only ever assigned to one VM.
|
2024-02-01 21:57:18 +00:00
|
|
|
id = 7;
|
2024-01-30 21:32:09 +00:00
|
|
|
staticNetworking = true;
|
2024-01-31 20:58:23 +00:00
|
|
|
staticIPv4 = config.lab.networking.dmz.ipv4.services;
|
|
|
|
staticIPv6 = config.lab.networking.dmz.ipv6.services;
|
2024-02-07 22:15:48 +00:00
|
|
|
|
|
|
|
shares = [{
|
|
|
|
name = "dnsmasq";
|
|
|
|
mountPoint = "/var/lib/dnsmasq";
|
|
|
|
}];
|
2024-01-30 21:32:09 +00:00
|
|
|
};
|
2024-01-29 21:21:15 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2024-02-04 16:16:41 +00:00
|
|
|
|
|
|
|
maestro2 = {
|
|
|
|
type = "virtual";
|
2024-02-06 21:03:25 +00:00
|
|
|
hypervisorName = "atlas";
|
2024-02-04 16:16:41 +00:00
|
|
|
|
2024-02-05 21:45:09 +00:00
|
|
|
nixosModule = { pkgs, lib, config, ... }: {
|
2024-02-07 22:15:48 +00:00
|
|
|
lab = {
|
|
|
|
dockerSwarm.enable = true;
|
2024-02-04 16:16:41 +00:00
|
|
|
|
2024-02-07 22:15:48 +00:00
|
|
|
vm = {
|
|
|
|
id = 1;
|
|
|
|
staticNetworking = true;
|
|
|
|
staticIPv4 = "192.168.30.42";
|
|
|
|
staticIPv6 = "2a0d:6e00:1a77:30::42";
|
|
|
|
};
|
2024-02-04 16:16:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
bancomart2 = {
|
|
|
|
type = "virtual";
|
2024-02-06 21:03:25 +00:00
|
|
|
hypervisorName = "jefke";
|
2024-02-04 16:16:41 +00:00
|
|
|
|
2024-02-05 21:45:09 +00:00
|
|
|
nixosModule = { pkgs, lib, config, ... }: {
|
2024-02-07 22:15:48 +00:00
|
|
|
lab = {
|
|
|
|
dockerSwarm.enable = true;
|
|
|
|
vm.id = 2;
|
2024-02-06 21:03:25 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
|
|
|
vpay2 = {
|
|
|
|
type = "virtual";
|
|
|
|
hypervisorName = "lewis";
|
|
|
|
|
|
|
|
nixosModule = { pkgs, lib, config, ... }: {
|
2024-02-07 22:15:48 +00:00
|
|
|
lab = {
|
|
|
|
dockerSwarm.enable = true;
|
|
|
|
vm.id = 3;
|
2024-02-04 16:16:41 +00:00
|
|
|
};
|
|
|
|
};
|
|
|
|
};
|
2023-11-15 12:06:59 +00:00
|
|
|
}
|