nix-config/modules/neovim/default.nix
2026-03-03 10:46:08 +01:00

34 lines
631 B
Nix

{
inputs,
lib,
config,
...
}:
with lib;
let
cfg = config.neovim;
in
{
options.neovim = {
enable = mkOption {
type = types.bool;
default = false;
description = "Enable neovim";
};
extraPackages = mkOption {
type = types.listOf types.package;
default = [ ];
description = "Additional packages to install alongside neovim on the system.";
};
};
flake-file.inputs.nixvim.url = "github:nix-community/nixvim";
flake.modules.homeManager.neovim = {
imports = [ inputs.nixvim.homeModules.nixvim ];
programs.nixvim = {
enable = cfg.enable;
};
};
}