mirror of
https://github.com/foo-dogsquared/nixos-config.git
synced 2025-01-31 04:58:01 +00:00
home-manager/programs/neovide: improve the conditional for settings file
This commit is contained in:
parent
fd6d903108
commit
f6d6a4acae
@ -40,12 +40,14 @@ in
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
config = lib.mkIf cfg.enable {
|
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||||
home.packages = [ cfg.package ];
|
{
|
||||||
|
home.packages = [ cfg.package ];
|
||||||
|
}
|
||||||
|
|
||||||
xdg.configFile."neovide/config.toml".source =
|
(lib.mkIf (cfg.settings != { }) {
|
||||||
lib.mkIf
|
xdg.configFile."neovide/config.toml".source =
|
||||||
(cfg.settings != { })
|
settingsFormat.generate "home-manager-neovide-settings" cfg.settings;
|
||||||
(settingsFormat.generate "home-manager-neovide-settings" cfg.settings);
|
})
|
||||||
};
|
]);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user