mpvpaper: fix eval if no settings are defined (#7370)

Do not attempt to evaluate the xdg config files if no settings for
pauseList and stopList are defined.
This commit is contained in:
Tarow 2025-07-02 17:25:41 +02:00 committed by GitHub
parent 3d243d4a16
commit 7c45553340
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -55,7 +55,11 @@ in
];
home.packages = mkIf (cfg.package != null) [ cfg.package ];
xdg.configFile."mpvpaper/pauselist".text = mkIf (cfg.pauseList != "") cfg.pauseList;
xdg.configFile."mpvpaper/stoplist".text = mkIf (cfg.stopList != "") cfg.stopList;
xdg.configFile."mpvpaper/pauselist" = mkIf (cfg.pauseList != "") {
text = cfg.pauseList;
};
xdg.configFile."mpvpaper/stoplist" = mkIf (cfg.stopList != "") {
text = cfg.stopList;
};
};
}