nixos/home/hyprland/anyrun/default.nix

72 lines
2.6 KiB
Nix

{ config, pkgs, anyrun, ... }: {
imports = [ anyrun.homeManagerModules.default ./kidex.nix ];
home.packages = with pkgs; [
rink
(pkgs.callPackage ./pkgs/kidex/default.nix { })
];
programs.anyrun = {
enable = true;
config = {
plugins = with anyrun.packages.${pkgs.system}; [
applications
dictionary
kidex
randr
rink
shell
symbols
translate
websearch
];
width.fraction = 0.3;
y.absolute = 15;
hidePluginInfo = true;
closeOnClick = true;
};
extraCss = builtins.readFile ./style.css;
extraConfigFiles."websearch.ron".source = ./websearch.ron;
};
xdg.configFile."kidex.ron".text = ''
Config(
ignored: [".git*"], // A list of patterns to be ignored in all directories
directories: [
WatchDir(
path: "${config.xdg.userDirs.documents}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
WatchDir(
path: "${config.xdg.userDirs.desktop}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
WatchDir(
path: "${config.xdg.userDirs.download}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
WatchDir(
path: "${config.xdg.userDirs.music}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
WatchDir(
path: "${config.xdg.userDirs.pictures}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
WatchDir(
path: "${config.xdg.userDirs.templates}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
WatchDir(
path: "${config.xdg.userDirs.videos}", // The root folder to be indexed
recurse: true, // Recursively index and watch all subfolders
ignored: [], // Ignore patterns specifically for this directory
),
],
)
'';
}