fix: anyrun - The package should come from the same flake as all the plugins

This commit is contained in:
Ryan Yin
2025-09-10 21:57:17 +08:00
parent b6796f9592
commit 07d6a5e102

View File

@@ -3,9 +3,15 @@
anyrun, anyrun,
... ...
}: }:
let
anyrunPackages = anyrun.packages.${pkgs.system};
in
{ {
programs.anyrun = { programs.anyrun = {
enable = true; enable = true;
# The package should come from the same flake as all the plugins to avoid breakage.
package = anyrunPackages.anyrun;
config = { config = {
# The horizontal position. # The horizontal position.
# when using `fraction`, it sets a fraction of the width or height of the screen # when using `fraction`, it sets a fraction of the width or height of the screen
@@ -24,7 +30,7 @@
maxEntries = null; maxEntries = null;
# https://github.com/anyrun-org/anyrun/tree/master/plugins # https://github.com/anyrun-org/anyrun/tree/master/plugins
plugins = with anyrun.packages.${pkgs.system}; [ plugins = with anyrunPackages; [
applications # Launch applications applications # Launch applications
dictionary # Look up word definitions using the Free Dictionary API. dictionary # Look up word definitions using the Free Dictionary API.
nix-run # search & run graphical apps from nixpkgs via `nix run`, without installing it. nix-run # search & run graphical apps from nixpkgs via `nix run`, without installing it.