mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
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:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user