odhcp-script: delete stale dirs from previous runs

This requires adding LFS as a dependency because native Lua has
no way to iterate a directory, but it seems to be Not Huge and
hopefully we'll have other uses for it
This commit is contained in:
Daniel Barlow
2023-09-08 20:47:01 +01:00
parent 09fe21260e
commit 12e25722fa
3 changed files with 28 additions and 2 deletions

View File

@@ -14,6 +14,7 @@ let packages = [
linotify
anoia
fennel
lua.pkgs.luafilesystem
];
join = ps: builtins.concatStringsSep ";" ps;
luapath = join (builtins.map (f: