summary refs log tree commit diff
path: root/nixos
diff options
context:
space:
mode:
authorThomas Tuegel <ttuegel@secure.mailbox.org>2018-07-14 13:13:39 -0500
committerGitHub <noreply@github.com>2018-07-14 13:13:39 -0500
commit1301973797ac540a20d782859bedd23f6719c7e2 (patch)
tree9d2f0d6d49e7b98e9288fde69ee91700f72708b1 /nixos
parent6a1b65b60691ea025acab758f06891fbbe4cc148 (diff)
parent8b3fb83160c68209e07914ac2201eb6fce9d727b (diff)
downloadnixlib-1301973797ac540a20d782859bedd23f6719c7e2.tar
nixlib-1301973797ac540a20d782859bedd23f6719c7e2.tar.gz
nixlib-1301973797ac540a20d782859bedd23f6719c7e2.tar.bz2
nixlib-1301973797ac540a20d782859bedd23f6719c7e2.tar.lz
nixlib-1301973797ac540a20d782859bedd23f6719c7e2.tar.xz
nixlib-1301973797ac540a20d782859bedd23f6719c7e2.tar.zst
nixlib-1301973797ac540a20d782859bedd23f6719c7e2.zip
Merge pull request #42910 from bkchr/kde_update_start_menu
services.plasma5: Update start menu with an activationScript
Diffstat (limited to 'nixos')
-rw-r--r--nixos/modules/services/x11/desktop-managers/plasma5.nix5
1 files changed, 5 insertions, 0 deletions
diff --git a/nixos/modules/services/x11/desktop-managers/plasma5.nix b/nixos/modules/services/x11/desktop-managers/plasma5.nix
index 91d091d7d7e2..4b9e561d53c8 100644
--- a/nixos/modules/services/x11/desktop-managers/plasma5.nix
+++ b/nixos/modules/services/x11/desktop-managers/plasma5.nix
@@ -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)));
     })
   ];