{ config, pkgs, username, ... }: { #To show logs of services run: journalctl --user-unit={service-name} --user systemd.user.services.set-wallpaper = { enable = true; description = "Set KDE Plasma wallpaper"; #after = [ "plasma-desktop.service" ]; wantedBy = [ "graphical-session.target" ]; serviceConfig = { ExecStart = [ "/run/current-system/sw/bin/plasma-apply-wallpaperimage /home/${username}/NixOS/other/wallpaper2.png" ]; Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; }; }; systemd.user.services.autostart-yakuake = { enable = true; description = "Automatically start Yakuake"; after = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ]; serviceConfig = { ExecStart = [ "${pkgs.kdePackages.yakuake}/bin/yakuake" ]; Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin"; }; }; systemd.user.services.theme-set-reminder = { enable = true; description = "Remind the user to apply the custom Plasma Theme shipped with this NixOS"; after = [ "graphical-session.target" ]; wantedBy = [ "graphical-session.target" ]; serviceConfig = { # ExecStart = [ "${pkgs.kdePackages.kdialog}/bin/kdialog --passivepopup \"Dont forget to apply custom system theme! (run kde-theme-apply in terminal)\"" ]; ExecStart = [ "/etc/nixos/plasma/theme-popup.sh" ]; Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; # Environment = "PATH=/run/current-system/sw/bin:/etc/profiles/per-user/$USER/bin"; # Environment = "DISPLAY=:0"; }; }; systemd.user.services.autostart-trayscale = { enable = true; description = "Automatically start Trayscale"; #after = [ "plasma-desktop.service" ]; wantedBy = [ "default.target" ]; serviceConfig = { ExecStart = [ "${pkgs.trayscale}/bin/trayscale --hide-window" ]; Type = "oneshot"; Restart = "on-failure"; RestartSec = "5s"; }; }; }