From 03c2b449f8bdd9cf67dfa1a49353054df7cabf97 Mon Sep 17 00:00:00 2001 From: Franz Pletz Date: Wed, 27 Jul 2016 01:16:38 +0200 Subject: dhcpd service: Add extraFlags option --- nixos/modules/services/networking/dhcpd.nix | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'nixos/modules/services/networking/dhcpd.nix') diff --git a/nixos/modules/services/networking/dhcpd.nix b/nixos/modules/services/networking/dhcpd.nix index 900df67b53a..36b4c5d5c1e 100644 --- a/nixos/modules/services/networking/dhcpd.nix +++ b/nixos/modules/services/networking/dhcpd.nix @@ -66,6 +66,14 @@ in "; }; + extraFlags = mkOption { + default = ""; + example = "-6"; + description = " + Additional command line flags to be passed to the dhcpd daemon. + "; + }; + configFile = mkOption { default = null; description = " @@ -138,6 +146,7 @@ in { ExecStart = "@${pkgs.dhcp}/sbin/dhcpd dhcpd" + " -pf /run/dhcpd/dhcpd.pid -cf ${configFile}" + " -lf ${stateDir}/dhcpd.leases -user dhcpd -group nogroup" + + " ${cfg.extraFlags}" + " ${toString cfg.interfaces}"; Restart = "always"; Type = "forking"; -- cgit 1.4.1