1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-03-31 04:04:32 +00:00
This commit is contained in:
Leonora Tindall 2025-03-20 09:06:18 +00:00 committed by GitHub
commit d0e3fd0f60
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,6 +24,14 @@ in {
GNU/Linux distributions other than NixOS.
'';
};
enableKdeApplicationCache = mkEnableOption "" // {
description = ''
Whether to enable the management of the KDE application cache.
When using KDE Plasma, desktop applications installed via
home-manager may not appear in menus with this option disabled.
'';
};
};
config = lib.mkIf cfg.enable {
@ -106,5 +114,13 @@ in {
TERMINFO_DIRS =
"${profileDirectory}/share/terminfo:$TERMINFO_DIRS\${TERMINFO_DIRS:+:}${distroTerminfoDirs}";
};
home.activation.updateKdeApplicationCache =
if cfg.enableKdeApplicationCache then
hm.dag.entryAfter [ "installPackages" ] ''
run /usr/bin/kbuildsycoca5 --noincremental
''
else
null;
};
}