Plasma: tell baloo to not index not useful folders

This commit is contained in:
Toast 2023-08-13 13:55:47 +02:00
parent 7d96e010ed
commit 273bcd9ffd

View file

@ -23,6 +23,20 @@ let
AccentColor = "172,53,164" ; }; AccentColor = "172,53,164" ; };
}; };
balooExcludedDirs = lib.strings.intersperse "," [
"$HOME/.cache/"
"$HOME/.config/"
"$HOME/.local/"
];
baloofilerc = lib.generators.toINI {} {
General = {
# The [$e] part allows you to use environment variables
"exclude folders[$e]" = lib.strings.concatStrings balooExcludedDirs;
};
};
# Make custom packages
breezeTint = pkgs.stdenv.mkDerivation { breezeTint = pkgs.stdenv.mkDerivation {
name = "breeze-tint"; name = "breeze-tint";
src = "${pkgs.breeze-qt5}"; src = "${pkgs.breeze-qt5}";
@ -60,6 +74,7 @@ let
set -x set -x
mkdir -p $out/etc/xdg mkdir -p $out/etc/xdg
echo "${kdeglobals}" > $out/etc/xdg/kdeglobals echo "${kdeglobals}" > $out/etc/xdg/kdeglobals
echo '${baloofilerc}' > $out/etc/xdg/baloofilerc
runHook postInstall runHook postInstall
''; '';