14 lines
326 B
Nix
14 lines
326 B
Nix
{ config, lib, pkgs, ... }: let
|
|
cfg = config.module.wallpaper;
|
|
in {
|
|
config = lib.mkMerge [
|
|
(lib.mkIf cfg.video {
|
|
environment.systemPackages = [
|
|
(pkgs.writeShellScriptBin "wallpaper-video" ''
|
|
mpvpaper -o 'no-audio --loop-file --panscan=1' '*' ${cfg.videoPath}
|
|
'')
|
|
];
|
|
})
|
|
];
|
|
}
|