dhcpd service: Add extraFlags option
commit03c2b449f8bdd9cf67dfa1a49353054df7cabf97
authorFranz Pletz <fpletz@fnordicwalking.de>
dateWed 27 Jul 2016, 01:16 (10 years ago)
parent725e04c
nixos/modules/services/networking/dhcpd.nix+9
@@ -66,6 +66,14 @@ in
6666 ";
6767 };
6868
69+ extraFlags = mkOption {
70+ default = "";
71+ example = "-6";
72+ description = "
73+ Additional command line flags to be passed to the dhcpd daemon.
74+ ";
75+ };
76+
6977 configFile = mkOption {
7078 default = null;
7179 description = "
@@ -138,6 +146,7 @@ in
138146 { ExecStart = "@${pkgs.dhcp}/sbin/dhcpd dhcpd"
139147 + " -pf /run/dhcpd/dhcpd.pid -cf ${configFile}"
140148 + " -lf ${stateDir}/dhcpd.leases -user dhcpd -group nogroup"
149+ + " ${cfg.extraFlags}"
141150 + " ${toString cfg.interfaces}";
142151 Restart = "always";
143152 Type = "forking";