dotfiles/modules/config/instances/default.nix

25 lines
513 B
Nix
Raw Normal View History

2025-06-26 21:20:09 -05:00
{ moduleFunctions }:
2025-03-29 23:08:26 -05:00
let
configPath = ./config;
instances = builtins.listToAttrs (
map
(name: {
name = builtins.substring 0 (builtins.stringLength name - 4) name;
value = import (configPath + "/${name}") {
inherit
2025-06-26 21:20:09 -05:00
moduleFunctions
2025-03-29 23:08:26 -05:00
;
};
})
(
builtins.filter (name: builtins.match ".*\\.nix$" name != null) (
builtins.attrNames (builtins.readDir configPath)
)
)
);
in
{
instances = instances;
}