mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-09-29 15:43:00 +00:00
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:
parent
df41961bd4
commit
d7a4bf5998
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user