run dhcp server on bordervm

this is for testing clients that have dhcp upstream
This commit is contained in:
Daniel Barlow 2024-05-08 23:03:32 +01:00 committed by Raito Bezarius
parent 10ab431d15
commit 58cce5b544

View file

@ -80,8 +80,19 @@ in {
}; };
}; };
services.openssh.enable = true; services.openssh.enable = true;
services.dnsmasq = {
enable = true;
resolveLocalQueries = false;
settings = {
# domain-needed = true;
dhcp-range = [ "10.0.0.10,10.0.0.240" ];
interface = "eth1";
};
};
systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ]; systemd.services.sshd.wantedBy = pkgs.lib.mkForce [ "multi-user.target" ];
virtualisation = { virtualisation = {
qemu = { qemu = {
networkingOptions = []; networkingOptions = [];