fetchWallpaper: get DISPLAY from xserver.display
This commit is contained in:
parent
23d301097e
commit
3c631cfa76
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user