fetchWallpaper: display should be string

This commit is contained in:
lassulus 2017-12-03 23:31:31 +01:00
parent c3db1f794a
commit 47e7a6f688

View File

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