diff --git a/misc/anyrun/default.nix b/misc/anyrun/default.nix index 850ff9e..a09f2a7 100644 --- a/misc/anyrun/default.nix +++ b/misc/anyrun/default.nix @@ -1,9 +1,38 @@ -{pkgs, ...}: { - home.file = { - ".config/anyrun".source = ../anyrun; - }; - - home.packages = [ - pkgs.anyrun +{ + pkgs, + inputs, + ... +}: { + imports = [ + inputs.anyrun.homeManagerModules.anyrun # Import the anyrun home-manager module ]; + + programs.anyrun = { + enable = true; + config = { + plugins = [ + inputs.anyrun.packages.${pkgs.system}.applications + inputs.anyrun.packages.${pkgs.system}.symbols + inputs.anyrun.packages.${pkgs.system}.websearch + inputs.anyrun.packages.${pkgs.system}.rink + inputs.anyrun.packages.${pkgs.system}.shell + inputs.anixrun.packages.${pkgs.system}.default + ]; + x = {fraction = 0.5;}; + y = {fraction = 0.3;}; + width = {fraction = 0.3;}; + hideIcons = false; + ignoreExclusiveZones = false; + layer = "top"; + hidePluginInfo = true; + closeOnClick = true; + showResultsImmediately = false; + maxEntries = null; + }; + extraCss = builtins.readFile ./style.css; + + extraConfigFiles."applications.ron".text = builtins.readFile ./applications.ron; + extraConfigFiles."symbols.ron".text = builtins.readFile ./symbols.ron; + extraConfigFiles."websearch.ron".text = builtins.readFile ./websearch.ron; + }; }