mirror of
https://github.com/ilyakooo0/nixpkgs.git
synced 2024-10-22 05:07:45 +03:00
18 lines
264 B
Nix
18 lines
264 B
Nix
|
{dhcp, configFile, interfaces}:
|
||
|
|
||
|
{
|
||
|
name = "dhcpd";
|
||
|
|
||
|
job = "
|
||
|
description \"DHCP server\"
|
||
|
|
||
|
start on network-interfaces/started
|
||
|
stop on network-interfaces/stop
|
||
|
|
||
|
script
|
||
|
exec ${dhcp}/sbin/dhcpd -f -cf ${configFile} ${toString interfaces}
|
||
|
end script
|
||
|
";
|
||
|
|
||
|
}
|