commit bd6ec5201f3776a6449a27c6b663d07f41f0aeb3
parent b4068da9fe220e76fc0f6f6a74deb78d33e7735a
Author: Daniel Barlow <dan@telent.net>
Date: Wed, 8 May 2024 23:03:32 +0100
run dhcp server on bordervm
this is for testing clients that have dhcp upstream
Diffstat:
1 file changed, 11 insertions(+), 0 deletions(-)
diff --git 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 = [];