TakodaS 149824a515 WIP: nixified webui
currently packaging as a nixosModule so should be easy to integrate with
nixos generators in the future. Also looking at making a docker image
without systemd
2025-03-10 17:51:53 +00:00

16 lines
310 B
Nix

{
lib,
...
}:
{
forAllSystems = lib.genAttrs lib.systems.flakeExposed;
getSubdirs =
dir:
let
dirContents = builtins.readDir dir; # Reads the current directory
folders = builtins.attrNames (lib.attrsets.filterAttrs (_: type: type == "directory") dirContents);
in
folders;
}