summaryrefslogtreecommitdiffstats
path: root/krebs/3modules/fetchWallpaper.nix
diff options
context:
space:
mode:
authorlassulus <lassulus@lassul.us>2017-12-03 23:31:31 +0100
committerlassulus <lassulus@lassul.us>2017-12-03 23:31:31 +0100
commit47e7a6f6880195c41465e92b2d11f060d9e21311 (patch)
tree5d3d0034e4591e555d1bceea1ea448856902aa64 /krebs/3modules/fetchWallpaper.nix
parentc3db1f794a802068397cec9698026009cebcb86c (diff)
fetchWallpaper: display should be string
Diffstat (limited to 'krebs/3modules/fetchWallpaper.nix')
-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 58d361c6e..f67188122 100644
--- a/krebs/3modules/fetchWallpaper.nix
+++ b/krebs/3modules/fetchWallpaper.nix
@@ -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;