system.userActivationScripts
NixOS option
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
declared in: nixos/modules/system/activation/activation-script.nixView source on NixOS/nixpkgs →{ plasmaSetup = {
text = ''
${pkgs.libsForQt5.kservice}/bin/kbuildsycoca5"
'';
deps = [];
};
}