2025-01-01 14:10:55 +03:00
|
|
|
{ config, lib, pkgs, ... }: let
|
|
|
|
cfg = config.module.wallpaper;
|
|
|
|
in {
|
|
|
|
config = lib.mkMerge [
|
|
|
|
(lib.mkIf cfg.video {
|
|
|
|
environment.systemPackages = [
|
2025-01-01 16:26:28 +03:00
|
|
|
(pkgs.writeShellScriptBin "wallpaper-video" ''
|
2025-01-01 14:10:55 +03:00
|
|
|
mpvpaper -o 'no-audio --loop-file --panscan=1' '*' ${cfg.videoPath}
|
|
|
|
'')
|
|
|
|
];
|
|
|
|
})
|
|
|
|
];
|
|
|
|
}
|