hyfetch: prevent writing config with default/empty settings (#3124)
This commit is contained in:
parent
d1c677ac25
commit
77648a07e4
3 changed files with 22 additions and 3 deletions
|
|
@ -37,7 +37,8 @@ in {
|
|||
|
||||
config = mkIf cfg.enable {
|
||||
home.packages = [ cfg.package ];
|
||||
xdg.configFile."hyfetch.json".source =
|
||||
jsonFormat.generate "hyfetch.json" cfg.settings;
|
||||
xdg.configFile."hyfetch.json" = mkIf (cfg.settings != { }) {
|
||||
source = jsonFormat.generate "hyfetch.json" cfg.settings;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue