system.userActivationScripts
A set of shell script fragments that are executed by a systemd user
service when a NixOS system configuration is activated. Examples are
rebuilding the .desktop file cache for showing applications in the menu.
Since these are executed every time you run
nixos-rebuild, it's important that they are
idempotent and fast.
- Type
attribute set of (string or (submodule))- Default
{ }- Example
{ plasmaSetup = { text = '' ${pkgs.libsForQt5.kservice}/bin/kbuildsycoca5" ''; deps = []; }; }- Declared
- <nixpkgs/nixos/modules/system/activation/activation-script.nix>