mirror of
https://codeberg.org/muon/home.git
synced 2026-03-08 03:25:16 +00:00
24 lines
520 B
Nix
24 lines
520 B
Nix
{
|
|
lib,
|
|
config,
|
|
...
|
|
}: let
|
|
cfg = config.mods.theme.slideshow;
|
|
in {
|
|
options.mods.theme.slideshow = {
|
|
enable = lib.mkEnableOption "enables slideshow wallpaper";
|
|
folder = lib.mkOption {
|
|
default = "%h/misc/pictures/wallpapers";
|
|
description = "slideshow wallpaper folder";
|
|
};
|
|
};
|
|
|
|
config = lib.mkIf cfg.enable {
|
|
services.random-background = lib.mkIf cfg.enable {
|
|
enable = true;
|
|
imageDirectory = cfg.folder;
|
|
enableXinerama = true;
|
|
interval = "1s";
|
|
};
|
|
};
|
|
}
|