From a3db001870d5bda24d3bba3a40f551a01b9609f3 Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Tue, 7 Jul 2020 17:17:55 +0200 Subject: [PATCH] hosts/containers/dhcp: make dhcp server authoritative Make the dhcp server explicitly authoritative before importing the configuration from the secrets submodule. --- hosts/containers/dhcp/configuration.nix | 5 ++++- secrets | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/hosts/containers/dhcp/configuration.nix b/hosts/containers/dhcp/configuration.nix index c0dfdc06..1aaa5400 100644 --- a/hosts/containers/dhcp/configuration.nix +++ b/hosts/containers/dhcp/configuration.nix @@ -31,7 +31,10 @@ services.dhcpd4 = { enable = true; interfaces = [ "eth0" ]; - extraConfig = builtins.readFile ../../../secrets/hosts/dhcp/config; + extraConfig = '' + authoritative; + + '' + builtins.readFile ../../../secrets/hosts/dhcp/config; }; # This value determines the NixOS release with which your system is to be diff --git a/secrets b/secrets index 3ae294f8..bd190b8b 160000 --- a/secrets +++ b/secrets @@ -1 +1 @@ -Subproject commit 3ae294f84afa3a399a73fedf60418009cc330598 +Subproject commit bd190b8b1f925a7b781eea72e60c3a10fae83bcc