mirror of
https://github.com/ryan4yin/nix-config.git
synced 2026-04-24 01:38:28 +02:00
feat: refactoring configuration with options to make it more modular
This commit is contained in:
18
lib/default.nix
Normal file
18
lib/default.nix
Normal file
@@ -0,0 +1,18 @@
|
||||
{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.filter # find all overlay files in the current directory
|
||||
|
||||
(
|
||||
f:
|
||||
f
|
||||
!= "default.nix" # ignore default.nix
|
||||
&& f != "README.md" # ignore README.md
|
||||
)
|
||||
(builtins.attrNames (builtins.readDir path)));
|
||||
}
|
||||
Reference in New Issue
Block a user