Auto-commit: 2026-01-05 18:23:06
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user