From 94d77499e819bfc73a4be4650c0360d8eb4da61c Mon Sep 17 00:00:00 2001 From: Lilly Date: Mon, 5 Jan 2026 20:32:12 +0000 Subject: [PATCH] Auto-commit: 2026-01-05 20:32:12 --- modules/core/default.nix | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/modules/core/default.nix b/modules/core/default.nix index e69de29..09a4da8 100644 --- a/modules/core/default.nix +++ b/modules/core/default.nix @@ -0,0 +1,19 @@ +{ lib, ... }: +let + b = builtins; + + module_files = + b.readDir ./. |> + lib.filterAttrs (name: type: + ( (lib.strings.hasSuffix ".nix" name + && name != "default.nix" + && type == "regular" ) + || ( type == "directory" + && b.pathExists ./${name}/default.nix)) + ) |> + b.attrNames |> + b.map (f: ./${f}); +in +{ + imports = module_files; +} \ No newline at end of file