34 lines
631 B
Nix
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;
|
|
};
|
|
};
|
|
}
|