forked from pub-solar/os
13 lines
320 B
Nix
13 lines
320 B
Nix
|
{
|
||
|
pkgs,
|
||
|
lib,
|
||
|
...
|
||
|
}: let
|
||
|
folder = ./.;
|
||
|
toImport = name: value: folder + ("/" + name);
|
||
|
filterCaches = key: value: value == "regular" && lib.hasSuffix ".nix" key && key != "default.nix";
|
||
|
imports = lib.mapAttrsToList toImport (lib.filterAttrs filterCaches (builtins.readDir folder));
|
||
|
in {
|
||
|
inherit imports;
|
||
|
}
|