{ config, pkgs, ... }: { systemd.user.services.set-wallpaper = { enable = true; description = "Set KDE Plasma wallpaper"; #after = [ "plasma-desktop.service" ]; serviceConfig.ExecStart = [ "/run/current-system/sw/bin/plasma-apply-wallpaperimage /etc/nixos/other/wallpaper.png" ]; wantedBy = [ "graphical-session.target" ]; serviceConfig = { Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; }; }; systemd.user.services.autostart-yakuake = { enable = true; description = "Automatically start Yakuake"; after = [ "graphical-session.target" ]; serviceConfig.ExecStart = [ "${pkgs.kdePackages.yakuake}/bin/yakuake" ]; wantedBy = [ "graphical-session.target" ]; serviceConfig = { Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin"; }; }; systemd.user.services.autostart-trayscale = { enable = true; description = "Automatically start Trayscale"; #after = [ "plasma-desktop.service" ]; serviceConfig.ExecStart = [ "${pkgs.trayscale}/bin/trayscale --hide-window" ]; wantedBy = [ "default.target" ]; serviceConfig = { Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; }; }; }