home: update systemd for discord and slack

This commit is contained in:
Tigor Hutasuhut 2024-08-24 19:20:05 +07:00
parent ab35f03c0d
commit 0bd9159d3f
2 changed files with 1 additions and 4 deletions

View file

@ -15,8 +15,6 @@ in
Description = "Automatically start Discord on Login"; Description = "Automatically start Discord on Login";
# Only runs on sessions with a graphical target like X11 or Wayland. # Only runs on sessions with a graphical target like X11 or Wayland.
Wants = [ "graphical.target" ]; Wants = [ "graphical.target" ];
# Only run after the network is online.
After = [ "nss-lookup.target" ];
StartLimitIntervalSec = 300; StartLimitIntervalSec = 300;
StartLimitBurst = 10; StartLimitBurst = 10;
}; };

View file

@ -17,14 +17,13 @@ in
OnCalendar = "Mon..Fri 09..18:*:*"; OnCalendar = "Mon..Fri 09..18:*:*";
}; };
Install = { Install = {
WantedBy = [ "default.target" ]; WantedBy = [ "timers.target" ];
}; };
}; };
services.slack = { services.slack = {
Unit = { Unit = {
Description = "Slack Desktop Client"; Description = "Slack Desktop Client";
Wants = [ "graphical.target" ]; Wants = [ "graphical.target" ];
After = [ "nss-lookup.target" ];
StartLimitIntervalSec = 300; StartLimitIntervalSec = 300;
StartLimitBurst = 10; StartLimitBurst = 10;
}; };