27 lines
632 B
Nix
27 lines
632 B
Nix
{ config }:
|
||
{
|
||
# NOTE: Wpaperd displays wallpaper upside-down on 90´ ccw rotated
|
||
# monitors as of 26.05
|
||
services.wpaperd = {
|
||
enable = true;
|
||
settings =
|
||
builtins.listToAttrs (
|
||
map (mon: {
|
||
name = mon;
|
||
value = {
|
||
# Each monitor gets a folder under wallpaper that
|
||
# containes the current images.
|
||
path = "~/Pictures/Wallpaper/${mon}";
|
||
};
|
||
}) (builtins.attrNames config.hardware.monitors)
|
||
)
|
||
// {
|
||
default = {
|
||
duration = "1h";
|
||
mode = "center";
|
||
sorting = "random";
|
||
};
|
||
};
|
||
};
|
||
}
|