nixos/home/hyprland/anyrun/kidex.nix

48 lines
2 KiB
Nix
Raw Normal View History

{ config, lib, pkgs, ... }:
{
home.packages = [ (pkgs.callPackage ./pkgs/kidex/default.nix { }) ];
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
),
],
)
'';
}