2023-11-15 05:46:07 -05:00
|
|
|
{
|
|
|
|
inputs,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: let
|
|
|
|
compileSCSS = name: source: "${pkgs.runCommandLocal name {} ''
|
|
|
|
mkdir -p $out
|
|
|
|
${lib.getExe pkgs.sassc} -t expanded '${source}' > $out/${name}.css
|
|
|
|
''}/${name}.css";
|
|
|
|
in {
|
|
|
|
programs.anyrun = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
|
|
|
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
|
|
|
applications
|
|
|
|
dictionary
|
|
|
|
websearch
|
|
|
|
];
|
|
|
|
width = {fraction = 0.3;};
|
|
|
|
hideIcons = false;
|
|
|
|
ignoreExclusiveZones = false;
|
|
|
|
layer = "overlay";
|
|
|
|
hidePluginInfo = false;
|
|
|
|
closeOnClick = false;
|
|
|
|
showResultsImmediately = false;
|
|
|
|
};
|
|
|
|
extraCss = builtins.readFile (compileSCSS "style" ./style.scss);
|
|
|
|
extraConfigFiles = {
|
|
|
|
"dictionary.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefix: ":def",
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
"applications.ron".text = ''
|
|
|
|
Config(
|
2023-11-24 04:23:16 -05:00
|
|
|
desktop_actions: false,
|
2023-11-15 05:46:07 -05:00
|
|
|
max_entries: 10,
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
"websearch.ron".text = ''
|
|
|
|
Config(
|
|
|
|
prefix: "?",
|
|
|
|
engines: [
|
|
|
|
Custom(
|
|
|
|
name: "SearXNG",
|
|
|
|
url: "100.121.201.47:8100/search?q={}",
|
|
|
|
),
|
|
|
|
Custom(
|
|
|
|
name: "nix packages",
|
|
|
|
url: "search.nixos.org/packages?query={}&channel=unstable",
|
|
|
|
),
|
|
|
|
],
|
|
|
|
)
|
|
|
|
'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|