home: rbw: start service with graphical session

otherwise it needed to be restarted to have access to DISPLAY related
env variables
This commit is contained in:
Antoine Martin 2023-12-05 12:37:37 +01:00
parent da89731fed
commit 172ca43383

View file

@ -37,9 +37,13 @@ in {
# This user service makes sure the rbw-agent is started when the user
# session launches.
systemd.user.services.rbw = {
Unit.Description = "rbw agent autostart";
Unit = {
Description = "rbw agent autostart";
After = "graphical-session.target";
PartOf = "graphical-session.target";
};
Install.WantedBy = ["default.target"];
Install.WantedBy = ["graphical-session.target"];
Service = {
ExecStart = "${pkgs.rbw}/bin/rbw-agent";