nix/config/Wallpaper.nix

14 lines
266 B
Nix
Raw Normal View History

2025-01-01 18:22:32 +03:00
{ config, pkgs, ... }:
let
cfg = config.module.wallpaper;
2025-01-01 18:22:32 +03:00
in
{
config = {
environment.systemPackages = [
(pkgs.writeShellScriptBin "wallpaper-video" ''
mpvpaper -o 'no-audio --loop-file --panscan=1' '*' ${cfg.videoPath}
'')
];
};
}