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