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:
parent
8d2ee39915
commit
ce1ba0e9f3
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue