sets up basic structure

This commit is contained in:
Dennis 2026-03-03 13:46:54 +01:00
parent a0e3d792a9
commit 2ac5d0321b
17 changed files with 1368 additions and 36 deletions

View file

@ -1,34 +1,17 @@
{
inputs,
lib,
config,
pkgs,
...
}:
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;
enable = true;
defaultEditor = true;
package = pkgs.neovim-unwrapped;
vimAlias = true;
vimdiffAlias = true;
};
};
}