diff options
author | lassulus <lassulus@lassul.us> | 2017-12-03 22:29:18 +0100 |
---|---|---|
committer | lassulus <lassulus@lassul.us> | 2017-12-03 22:29:18 +0100 |
commit | 3c631cfa76849cb4640e17d8cdda969e4b6f423e (patch) | |
tree | d0fb1ff1a2dff507a6dfeecf6cc8578058292f1c | |
parent | 23d301097e8b3fb74154b4b06619d25e7d2dec36 (diff) |
fetchWallpaper: get DISPLAY from xserver.display
-rw-r--r-- | krebs/3modules/fetchWallpaper.nix | 6 |
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; |