mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-08-09 05:14:41 -05:00
24 lines
513 B
Nix
Executable file
24 lines
513 B
Nix
Executable file
{ moduleFunctions }:
|
|
let
|
|
configPath = ./config;
|
|
|
|
instances = builtins.listToAttrs (
|
|
map
|
|
(name: {
|
|
name = builtins.substring 0 (builtins.stringLength name - 4) name;
|
|
value = import (configPath + "/${name}") {
|
|
inherit
|
|
moduleFunctions
|
|
;
|
|
};
|
|
})
|
|
(
|
|
builtins.filter (name: builtins.match ".*\\.nix$" name != null) (
|
|
builtins.attrNames (builtins.readDir configPath)
|
|
)
|
|
)
|
|
);
|
|
in
|
|
{
|
|
instances = instances;
|
|
}
|