mirror of
https://github.com/nix-community/home-manager.git
synced 2026-01-12 01:59:37 +08:00
neovide: fix error when no settings are declared (#7005)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user