1
0
Fork 0
mirror of https://github.com/nix-community/home-manager.git synced 2025-11-08 19:46:05 +01:00

neovide: fix error when no settings are declared (#7005)

This commit is contained in:
Aguirre Matteo 2025-05-09 13:19:03 +00:00 committed by GitHub
parent 8d2ee39915
commit ce1ba0e9f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -21,6 +21,7 @@ in
settings = lib.mkOption {
type = settingsFormat.type;
default = { };
example = lib.literalExpression ''
{
fork = false;
@ -52,6 +53,8 @@ in
config = lib.mkIf cfg.enable {
home.packages = lib.mkIf (cfg.package != null) [ cfg.package ];
xdg.configFile."neovide/config.toml".source = settingsFormat.generate "config.toml" cfg.settings;
xdg.configFile."neovide/config.toml" = lib.mkIf (cfg.settings != { }) {
source = settingsFormat.generate "neovide-config.toml" cfg.settings;
};
};
}