diff options
author | Peter Hoeg <peter@hoeg.com> | 2018-10-04 11:57:55 +0800 |
---|---|---|
committer | Peter Hoeg <peter@hoeg.com> | 2018-10-05 10:06:40 +0800 |
commit | 4dada63a174331151251cf8be093cd8fcdf28c12 (patch) | |
tree | dff9b28767ae9136a45a11600311b411045ae81f /nixos/modules/services/x11/desktop-managers/plasma5.nix | |
parent | 8118d6eb2e34b6f08511819b4e75650cf7f7d9cd (diff) | |
download | nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.tar nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.tar.gz nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.tar.bz2 nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.tar.lz nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.tar.xz nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.tar.zst nixpkgs-4dada63a174331151251cf8be093cd8fcdf28c12.zip |
plasma5: run kbuildsycoca5 in the user context
Diffstat (limited to 'nixos/modules/services/x11/desktop-managers/plasma5.nix')
-rw-r--r-- | nixos/modules/services/x11/desktop-managers/plasma5.nix | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix index e759f69db89..70655592145 100644 --- a/nixos/modules/services/x11/desktop-managers/plasma5.nix +++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix @@ -225,11 +225,8 @@ 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 ${pkgs.libsForQt5.kservice}/bin/kbuildsycoca5") - (filterAttrs (n: v: v.isNormalUser) config.users.users))); + # Update the start menu for each user that is currently logged in + system.userActivationScripts.plasmaSetup = "${pkgs.libsForQt5.kservice}/bin/kbuildsycoca5"; }) ]; |