mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-02-21 15:37:40 +01:00
21 lines
609 B
Nix
21 lines
609 B
Nix
{lib, ...}: {
|
|
colmenaSystem = import ./colmenaSystem.nix;
|
|
macosSystem = import ./macosSystem.nix;
|
|
nixosSystem = import ./nixosSystem.nix;
|
|
attrs = import ./attrs.nix {inherit lib;};
|
|
scanPaths = path:
|
|
builtins.map
|
|
(f: (path + "/${f}"))
|
|
(builtins.attrNames
|
|
(lib.attrsets.filterAttrs
|
|
(
|
|
path: _type:
|
|
(_type == "directory") # include directories
|
|
|| (
|
|
(path != "default.nix") # ignore default.nix
|
|
&& (lib.strings.hasSuffix ".nix" path) # include .nix files
|
|
)
|
|
)
|
|
(builtins.readDir path)));
|
|
}
|