mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 10:35:13 -05:00
15 lines
362 B
Nix
15 lines
362 B
Nix
![]() |
let
|
||
|
configPath = ./config;
|
||
|
|
||
|
aggregatedSettings =
|
||
|
let
|
||
|
files = builtins.attrNames (builtins.readDir configPath);
|
||
|
in
|
||
|
builtins.foldl' (
|
||
|
emptySet: settingsFile: emptySet // (import (configPath + "/${settingsFile}"))
|
||
|
) { } (builtins.filter (name: builtins.match ".*\\.nix$" name != null) files);
|
||
|
in
|
||
|
{
|
||
|
settings = aggregatedSettings;
|
||
|
}
|