summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 8d4933cb..58d361c6 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;