From f3791ad3a2e1e1ee27a6520b2c94e17d28b2b539 Mon Sep 17 00:00:00 2001 From: Lilly Date: Mon, 5 Jan 2026 18:23:06 +0000 Subject: [PATCH] Auto-commit: 2026-01-05 18:23:06 --- modules/default.nix | 32 ++++++++++++++++++-------------- 1 file changed, 18 insertions(+), 14 deletions(-) diff --git a/modules/default.nix b/modules/default.nix index b9c71a9..09a4da8 100644 --- a/modules/default.nix +++ b/modules/default.nix @@ -1,15 +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 = [ - ./cli - ./packages.nix - ./desktop - ./gaming - ./hardware.nix - ./network.nix - ./services.nix - ./fonts.nix - ./ld.nix - ./nvidia.nix - ./corsairLink.nix - ]; -} + imports = module_files; +} \ No newline at end of file