dotfiles/config/themes/default.nix
2024-12-19 19:56:45 -06:00

17 lines
434 B
Nix
Executable file

let
configPath = ./config;
themeFunctions = {
dummy = [];
};
themes = builtins.listToAttrs (map (name: {
name = builtins.substring 0 (builtins.stringLength name - 4) name;
value = import (configPath + "/${name}") {inherit themeFunctions;};
})
(builtins.filter (name:
builtins.match ".*\\.nix$" name != null) (builtins.attrNames
(builtins.readDir configPath))));
in {
themes = themes;
}