abandoned systemd-dhcp module.

Made convience function for calculating pool size and offset from range
instead.
This commit is contained in:
Gabe Venberg 2024-06-20 17:47:03 -05:00
parent 6ddbf26049
commit 98a92683bd
3 changed files with 10 additions and 119 deletions

View file

@ -1,5 +1,7 @@
{lib}: {
imports=[./net.nix];
{lib}:let
net = import ./net.nix {inherit lib;};
in
{
dirToStrings = dir: (map (v: builtins.readFile "${dir}/${v}")
(builtins.filter (v:
@ -11,4 +13,10 @@
)
else []
)));
calcSystemdDhcpPoolOffset = {base, start, end}: {
offset = net.lib.net.ip.diff start base;
size = net.lib.net.ip.diff end start;
};
}