mirror of
https://github.com/nix-community/home-manager.git
synced 2025-03-31 04:04:32 +00:00
Merge c729ffe3b0
into 94605dcade
This commit is contained in:
commit
d0e3fd0f60
1 changed files with 16 additions and 0 deletions
|
@ -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;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue