dhcpd service: Add extraFlags option

This commit is contained in:
Franz Pletz 2016-07-27 01:16:38 +02:00 committed by Robin Gloster
parent 725e04cc01
commit 03c2b449f8
No known key found for this signature in database
GPG key ID: 5E4C836C632C2882

View file

@ -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";