From d3b5bda4e647c34cd1b00a1c7de0592d6a330101 Mon Sep 17 00:00:00 2001 From: Astro Date: Sun, 3 Nov 2019 21:02:56 +0100 Subject: [PATCH] dhcp: no DHCP client at all pls --- hosts/containers/dhcp/configuration.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hosts/containers/dhcp/configuration.nix b/hosts/containers/dhcp/configuration.nix index 530345d1..0f76c314 100644 --- a/hosts/containers/dhcp/configuration.nix +++ b/hosts/containers/dhcp/configuration.nix @@ -10,11 +10,13 @@ networking.hostName = "dhcp"; networking.defaultGateway = "172.22.99.1"; networking.nameservers = [ "172.20.73.8" "172.20.72.6" "172.20.72.10" "9.9.9.9" ]; + networking.useDHCP = false; networking.interfaces.eth0 = { ipv4.addresses = [ { address = "172.22.99.254"; prefixLength = 24; } ]; + useDHCP = false; }; # List packages installed in system profile. To search, run: @@ -25,7 +27,6 @@ # dhcp networking.firewall.allowedUDPPorts = [ 67 68 ]; - networking.useDHCP = false; services.dhcpd4 = { enable = true;