summaryrefslogtreecommitdiffstats
path: root/krebs/3modules
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-12-03 22:29:18 +0100
committerlassulus <lassulus@lassul.us>2017-12-03 22:29:18 +0100
commit3c631cfa76849cb4640e17d8cdda969e4b6f423e (patch)
treed0fb1ff1a2dff507a6dfeecf6cc8578058292f1c /krebs/3modules
parent23d301097e8b3fb74154b4b06619d25e7d2dec36 (diff)
fetchWallpaper: get DISPLAY from xserver.display
Diffstat (limited to 'krebs/3modules')
-rw-r--r--krebs/3modules/fetchWallpaper.nix6
1 files changed, 3 insertions, 3 deletions
diff --git a/krebs/3modules/fetchWallpaper.nix b/krebs/3modules/fetchWallpaper.nix
index 8d4933cb5..58d361c6e 100644
--- a/krebs/3modules/fetchWallpaper.nix
+++ b/krebs/3modules/fetchWallpaper.nix
@@ -26,8 +26,8 @@ let
default = "/var/lib/wallpaper";
};
display = mkOption {
- type = types.str;
- default = ":0";
+ type = types.int;
+ default = config.services.xserver.display;
};
unitConfig = mkOption {
type = types.attrsOf types.str;
@@ -81,7 +81,7 @@ let
environment = {
URL = cfg.url;
- DISPLAY = cfg.display;
+ DISPLAY = ":${toString cfg.display}";
};
restartIfChanged = true;