move dnsmasq to kubernetes

This commit is contained in:
Pim Kunis 2024-04-11 23:17:01 +02:00
parent ffc8db4f03
commit 218bee6c17
8 changed files with 66 additions and 160 deletions

View file

@ -63,7 +63,6 @@ in
./atlas.nix
./jefke.nix
./lewis.nix
./hermes.nix
];
options = {

View file

@ -1,29 +0,0 @@
{
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";
}];
};
};
};
};
}