11.stylix/stylix/autoload.nix
2025-03-15 12:09:19 +00:00

14 lines
360 B
Nix

{ lib, inputs }:
# string -> [ path ]
# List include path for either nixos modules or hm modules
for:
builtins.concatLists (
lib.mapAttrsToList (
path: kind:
let
file = "${inputs.self}/modules/${path}/${for}.nix";
in
lib.optional (kind == "directory" && builtins.pathExists file) file
) (builtins.readDir "${inputs.self}/modules")
)