Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions maintainers/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -116,4 +116,9 @@
github = "aliaslion";
githubId = "122117018";
};
nuclear-squid = {
name = "Nuclear-Squid";
github = "Nuclear-Squid";
githubId = 70967142;
};
}
33 changes: 33 additions & 0 deletions wrapperModules/n/neovide/module.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
config,
lib,
wlib,
pkgs,
...
}:
{
imports = [ wlib.modules.default ];
options = {
settings = lib.mkOption {
type = wlib.types.structuredValueWith {
nullable = false;
typeName = "TOML";
};
default = {};
description = ''
Configuration passed to neovide using the `NEOVIDE_CONFIG` environment variable.
See <https://neovide.dev/config-file.html> for the config options.
'';
};
config = {
package = pkgs.neovide;
env.NEOVIDE_CONFIG = "${config.binDir}/config.toml";
constructFiles.generatedConfig = {
content = builtins.toJSON config.settings;
relPath = "${config.binDir}/config.toml";
builder = ''${pkgs.remarshal}/bin/json2toml "$1" "$2"'';
};
meta.maintainers = [ wlib.maintainers.nuclear-squid ];
};
};
Comment on lines +22 to +32

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like you've mistakenly placed the module's config inside of its options, so your wrapper module isn't actually setting any options or configuring anything. Therefore, this wrapper module will not function.

}
Loading