l sreenlock: get DISPLAY from xserver.display
This commit is contained in:
parent
aab2624a60
commit
4c6a578673
@ -23,7 +23,7 @@ let
|
|||||||
before = [ "sleep.target" ];
|
before = [ "sleep.target" ];
|
||||||
wantedBy = [ "sleep.target" ];
|
wantedBy = [ "sleep.target" ];
|
||||||
environment = {
|
environment = {
|
||||||
DISPLAY = ":0";
|
DISPLAY = ":${toString config.services.xserver.display}";
|
||||||
};
|
};
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
SyslogIdentifier = "screenlock";
|
SyslogIdentifier = "screenlock";
|
||||||
|
Loading…
Reference in New Issue
Block a user