mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-16 10:05:13 -05:00
14 lines
365 B
Nix
Executable file
14 lines
365 B
Nix
Executable file
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;
|
|
}
|