Rename mkTarget's 'configElements' argument to 'config' and 'extraOptions' to 'options' to provide a more transparent interface with the underlying Nixpkgs module system.
27 lines
552 B
Nix
27 lines
552 B
Nix
mkTarget:
|
|
{ lib, config, ... }:
|
|
mkTarget {
|
|
name = "neovide";
|
|
humanName = "Neovide";
|
|
config = [
|
|
(
|
|
{ fonts }:
|
|
{
|
|
programs.neovide.settings.font = {
|
|
normal = [ fonts.monospace.name ];
|
|
size = fonts.sizes.terminal;
|
|
};
|
|
}
|
|
)
|
|
(
|
|
{ opacity }:
|
|
{
|
|
programs.neovim.extraLuaConfig = lib.mkIf config.programs.neovide.enable ''
|
|
if vim.g.neovide then
|
|
vim.g.neovide_normal_opacity = ${toString opacity.terminal}
|
|
end
|
|
'';
|
|
}
|
|
)
|
|
];
|
|
}
|