2023-08-17 09:31:46 +02:00
|
|
|
{ inputs, pkgs, ... }: {
|
|
|
|
programs.anyrun = {
|
|
|
|
enable = true;
|
|
|
|
config = {
|
2023-08-19 21:13:34 +02:00
|
|
|
# {{{ Plugins
|
2023-08-17 09:31:46 +02:00
|
|
|
plugins = with inputs.anyrun.packages.${pkgs.system}; [
|
|
|
|
applications
|
|
|
|
dictionary
|
|
|
|
rink
|
|
|
|
stdin
|
2023-08-19 21:13:34 +02:00
|
|
|
# symbols # Looks ugly atm
|
|
|
|
# websearch
|
|
|
|
# inputs.anyrun-nixos-options.packages.${pkgs.system}.default # Idk how to set this up :(
|
2023-08-17 09:31:46 +02:00
|
|
|
];
|
2023-08-19 21:13:34 +02:00
|
|
|
# }}}
|
|
|
|
# {{{ Geometry
|
|
|
|
x.fraction = 0.5;
|
|
|
|
y.fraction = 0.25;
|
2023-08-17 09:31:46 +02:00
|
|
|
width.fraction = 0.5;
|
2023-08-19 21:13:34 +02:00
|
|
|
# }}}
|
|
|
|
|
|
|
|
hidePluginInfo = true;
|
|
|
|
closeOnClick = true;
|
|
|
|
showResultsImmediately = true;
|
|
|
|
maxEntries = 7;
|
2023-08-17 09:31:46 +02:00
|
|
|
};
|
2023-08-19 21:13:34 +02:00
|
|
|
|
|
|
|
extraCss = null;
|
2023-08-17 09:31:46 +02:00
|
|
|
};
|
2023-08-19 21:13:34 +02:00
|
|
|
|
|
|
|
# # See [the readme](https://github.com/n3oney/anyrun-nixos-options) for anyrun-nixos-options.
|
|
|
|
# programs.anyrun.extraConfigFiles."nixos-options.ron".text = ''
|
|
|
|
# Config(
|
|
|
|
# options_path: "${config.system.build.manual.optionsJSON}/share/doc/nixos/options.json"
|
|
|
|
# )
|
|
|
|
# '';
|
|
|
|
|
|
|
|
# home.packages =
|
|
|
|
# let anyrunScript = name: plugin: pkgs.writeShellScriptBin "anyrun-${plugin}";
|
|
|
|
# in
|
|
|
|
# [ (anyrunScript "launch" "applications") ];
|
2023-08-17 09:31:46 +02:00
|
|
|
}
|