29 lines
807 B
Nix
29 lines
807 B
Nix
{
|
|
machines.hermes = {
|
|
kind = "virtual";
|
|
hypervisorName = "lewis";
|
|
|
|
nixosModule = { hypervisorConfig, ... }: {
|
|
lab = {
|
|
networking = {
|
|
dmz.services.enable = true;
|
|
staticNetworking = true;
|
|
staticIPv4 = hypervisorConfig.lab.networking.dmz.ipv4.services;
|
|
staticIPv6 = hypervisorConfig.lab.networking.dmz.ipv6.services;
|
|
};
|
|
|
|
vm = {
|
|
# TODO: would be cool to create a check that a mac address is only ever assigned to one VM.
|
|
# TODO: idea: what if we generated these IDs by hashing the host name and reducing that to the amount of hosts possible?
|
|
id = 7;
|
|
|
|
shares = [{
|
|
name = "dnsmasq";
|
|
mountPoint = "/var/lib/dnsmasq";
|
|
}];
|
|
};
|
|
};
|
|
};
|
|
};
|
|
|
|
}
|