dhcpd service: Add extraFlags option
This commit is contained in:
parent
725e04cc01
commit
03c2b449f8
@ -66,6 +66,14 @@ in
|
|||||||
";
|
";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
extraFlags = mkOption {
|
||||||
|
default = "";
|
||||||
|
example = "-6";
|
||||||
|
description = "
|
||||||
|
Additional command line flags to be passed to the dhcpd daemon.
|
||||||
|
";
|
||||||
|
};
|
||||||
|
|
||||||
configFile = mkOption {
|
configFile = mkOption {
|
||||||
default = null;
|
default = null;
|
||||||
description = "
|
description = "
|
||||||
@ -138,6 +146,7 @@ in
|
|||||||
{ ExecStart = "@${pkgs.dhcp}/sbin/dhcpd dhcpd"
|
{ ExecStart = "@${pkgs.dhcp}/sbin/dhcpd dhcpd"
|
||||||
+ " -pf /run/dhcpd/dhcpd.pid -cf ${configFile}"
|
+ " -pf /run/dhcpd/dhcpd.pid -cf ${configFile}"
|
||||||
+ " -lf ${stateDir}/dhcpd.leases -user dhcpd -group nogroup"
|
+ " -lf ${stateDir}/dhcpd.leases -user dhcpd -group nogroup"
|
||||||
|
+ " ${cfg.extraFlags}"
|
||||||
+ " ${toString cfg.interfaces}";
|
+ " ${toString cfg.interfaces}";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
Type = "forking";
|
Type = "forking";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user