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 = [
|
imports = module_files;
|
||||||
./cli
|
}
|
||||||
./packages.nix
|
|
||||||
./desktop
|
|
||||||
./gaming
|
|
||||||
./hardware.nix
|
|
||||||
./network.nix
|
|
||||||
./services.nix
|
|
||||||
./fonts.nix
|
|
||||||
./ld.nix
|
|
||||||
./nvidia.nix
|
|
||||||
./corsairLink.nix
|
|
||||||
];
|
|
||||||
}
|
|
||||||
Reference in New Issue
Block a user