Skip to content

Commit

Permalink
dhcpd service: Add extraFlags option
Browse files Browse the repository at this point in the history
  • Loading branch information
fpletz authored and globin committed Oct 9, 2016
1 parent 725e04c commit 03c2b44
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions nixos/modules/services/networking/dhcpd.nix
Expand Up @@ -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 = "
Expand Down Expand Up @@ -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";
Expand Down

0 comments on commit 03c2b44

Please sign in to comment.