mirror of
https://gitlab.com/upRootNutrition/dotfiles.git
synced 2025-06-17 02:25:12 -05:00
31 lines
623 B
Nix
Executable file
31 lines
623 B
Nix
Executable file
{flake, ...}: let
|
|
aggregatedSearchEngines =
|
|
builtins.foldl' (
|
|
emptySet: searchEngine:
|
|
emptySet // (import ./${searchEngine}.nix)
|
|
) {} [
|
|
"academic"
|
|
"development"
|
|
"gaming"
|
|
"hidden"
|
|
"shopping"
|
|
"socialMedia"
|
|
"spank"
|
|
"tools"
|
|
"tracking"
|
|
"web"
|
|
]
|
|
// builtins.foldl' (
|
|
emptySet: searchEngine:
|
|
emptySet // (import ./${searchEngine}.nix {inherit flake;})
|
|
) {} [
|
|
"selfHosted"
|
|
];
|
|
in {
|
|
search = {
|
|
force = true;
|
|
default = "Kagi";
|
|
engines = aggregatedSearchEngines;
|
|
order = import ./order.nix;
|
|
};
|
|
}
|