summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-12-03 23:13:54 +0100
committerlassulus <lassulus@lassul.us>2017-12-03 23:13:54 +0100
commit4c6a578673a2c8eb4f7a3e65a8835071b2b572e4 (patch)
tree4364c6c1deb1cf78bad6c91f08de76ac7acf80d2
parentaab2624a60c87ba3ce5e495e823eeeb0a5446fe0 (diff)
l sreenlock: get DISPLAY from xserver.display
-rw-r--r--lass/3modules/screenlock.nix2
1 files changed, 1 insertions, 1 deletions
diff --git a/lass/3modules/screenlock.nix b/lass/3modules/screenlock.nix
index 06ca1f27d..e16ce9868 100644
--- a/lass/3modules/screenlock.nix
+++ b/lass/3modules/screenlock.nix
@@ -23,7 +23,7 @@ let
before = [ "sleep.target" ];
wantedBy = [ "sleep.target" ];
environment = {
- DISPLAY = ":0";
+ DISPLAY = ":${toString config.services.xserver.display}";
};
serviceConfig = {
SyslogIdentifier = "screenlock";