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

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;
};
};
}