plasma-manager/lib/wallpapers.nix
2024-06-20 18:39:59 +02:00

31 lines
897 B
Nix

{ lib, ... }:
{
wallpaperPictureOfTheDayType = with lib.types; submodule {
options = {
provider = lib.mkOption {
type = nullOr (enum [ "apod" "bing" "flickr" "natgeo" "noaa" "wcpotd" "epod" "simonstalenhag" ]);
description = "The provider for the Picture of the Day plugin.";
};
updateOverMeteredConnection = lib.mkOption {
type = bool;
default = false;
description = "Whether to update the wallpaper on a metered connection.";
};
};
};
wallpaperSlideShowType = with lib.types; submodule {
options = {
path = lib.mkOption {
type = either path (listOf path);
description = "The path(s) where the wallpapers are located.";
};
interval = lib.mkOption {
type = int;
default = 300;
description = "The length between wallpaper switches.";
};
};
};
}