nixos/plasma6: nuke sycoca on activation

This is not the right solution, but it should get us going for now.
This commit is contained in:
K900 2024-03-02 11:17:58 +03:00
parent df41961bd4
commit d7a4bf5998

View File

@ -10,6 +10,11 @@
inherit (pkgs) kdePackages;
inherit (lib) literalExpression mkDefault mkIf mkOption mkPackageOptionMD types;
activationScript = ''
# will be rebuilt automatically
rm -fv $HOME/.cache/ksycoca*
'';
in {
options = {
services.xserver.desktopManager.plasma6 = {
@ -273,5 +278,14 @@ in {
};
programs.kdeconnect.package = kdePackages.kdeconnect-kde;
# FIXME: ugly hack. See #292632 for details.
system.userActivationScripts.rebuildSycoca = activationScript;
systemd.user.services.nixos-rebuild-sycoca = {
description = "Rebuild KDE system configuration cache";
wantedBy = [ "graphical-session-pre.target" ];
serviceConfig.Type = "oneshot";
script = activationScript;
};
};
}