abandoned systemd-dhcp module.
Made convience function for calculating pool size and offset from range instead.
This commit is contained in:
parent
6ddbf26049
commit
98a92683bd
3 changed files with 10 additions and 119 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue