From 58cce5b544289876a6bf6d011d2de1d7a5537d96 Mon Sep 17 00:00:00 2001 From: Daniel Barlow Date: Wed, 8 May 2024 23:03:32 +0100 Subject: [PATCH] run dhcp server on bordervm this is for testing clients that have dhcp upstream --- bordervm-configuration.nix | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/bordervm-configuration.nix b/bordervm-configuration.nix index a9c2c7b..cd8a3a9 100644 --- a/bordervm-configuration.nix +++ b/bordervm-configuration.nix @@ -80,8 +80,19 @@ in { }; }; 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" ]; + virtualisation = { qemu = { networkingOptions = [];