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 {
|
||||
home.packages = [ cfg.package ];
|
||||
config = lib.mkIf cfg.enable (lib.mkMerge [
|
||||
{
|
||||
home.packages = [ cfg.package ];
|
||||
}
|
||||
|
||||
xdg.configFile."neovide/config.toml".source =
|
||||
lib.mkIf
|
||||
(cfg.settings != { })
|
||||
(settingsFormat.generate "home-manager-neovide-settings" cfg.settings);
|
||||
};
|
||||
(lib.mkIf (cfg.settings != { }) {
|
||||
xdg.configFile."neovide/config.toml".source =
|
||||
settingsFormat.generate "home-manager-neovide-settings" cfg.settings;
|
||||
})
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user