Wallpaper: Fix non-video build.
This commit is contained in:
parent
03fb7207c8
commit
3252822100
|
@ -1,13 +1,20 @@
|
|||
{ config, pkgs, ... }:
|
||||
{
|
||||
config,
|
||||
lib,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
let
|
||||
cfg = config.module.wallpaper;
|
||||
in
|
||||
{
|
||||
config = {
|
||||
config = lib.mkMerge [
|
||||
(lib.mkIf (cfg.videoPath != null) {
|
||||
environment.systemPackages = [
|
||||
(pkgs.writeShellScriptBin "wallpaper-video" ''
|
||||
mpvpaper -o 'no-audio --loop-file --panscan=1' '*' ${cfg.videoPath}
|
||||
'')
|
||||
];
|
||||
};
|
||||
})
|
||||
];
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue