Merge pull request #42910 from bkchr/kde_update_start_menu

services.plasma5: Update start menu with an activationScript
This commit is contained in:
Thomas Tuegel 2018-07-14 13:13:39 -05:00 committed by GitHub
commit 1301973797
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 0 deletions

View File

@ -221,6 +221,11 @@ in
security.pam.services.sddm.enableKwallet = true;
security.pam.services.slim.enableKwallet = true;
# Update the start menu for each user that has `isNormalUser` set.
system.activationScripts.plasmaSetup = stringAfter [ "users" "groups" ]
(concatStringsSep "\n"
(mapAttrsToList (name: value: "${pkgs.su}/bin/su ${name} -c kbuildsycoca5")
(filterAttrs (n: v: v.isNormalUser) config.users.users)));
})
];