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:
parent
da89731fed
commit
172ca43383
|
@ -37,9 +37,13 @@ in {
|
||||||
# This user service makes sure the rbw-agent is started when the user
|
# This user service makes sure the rbw-agent is started when the user
|
||||||
# session launches.
|
# session launches.
|
||||||
systemd.user.services.rbw = {
|
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 = {
|
Service = {
|
||||||
ExecStart = "${pkgs.rbw}/bin/rbw-agent";
|
ExecStart = "${pkgs.rbw}/bin/rbw-agent";
|
||||||
|
|
Loading…
Reference in a new issue