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:
parent
3d243d4a16
commit
7c45553340
1 changed files with 6 additions and 2 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue