fetchWallpaper: get DISPLAY from xserver.display

This commit is contained in:
lassulus 2017-12-03 22:29:18 +01:00
parent 23d301097e
commit 3c631cfa76

View File

@ -26,8 +26,8 @@ let
default = "/var/lib/wallpaper"; default = "/var/lib/wallpaper";
}; };
display = mkOption { display = mkOption {
type = types.str; type = types.int;
default = ":0"; default = config.services.xserver.display;
}; };
unitConfig = mkOption { unitConfig = mkOption {
type = types.attrsOf types.str; type = types.attrsOf types.str;
@ -81,7 +81,7 @@ let
environment = { environment = {
URL = cfg.url; URL = cfg.url;
DISPLAY = cfg.display; DISPLAY = ":${toString cfg.display}";
}; };
restartIfChanged = true; restartIfChanged = true;