Add an nvim package

Now I can run `nix run .#nvim` to run Neovim with any configuration
changes without having to rebuild my whole NixOS configuration.
This commit is contained in:
Oliver Davies 2025-06-12 12:13:49 +01:00
parent e65f3e42a5
commit a068e0481f
3 changed files with 71 additions and 59 deletions

View file

@ -42,6 +42,12 @@
};
inherit (pkgs) mkShell;
neovimWithConfig = inputs.nixvim.legacyPackages.${system}.makeNixvimWithModule {
inherit pkgs;
module = import ./modules/home-manager/coding/neovim/nixvim.nix;
};
in
{
devShells.${system}.default = pkgs.mkShell {
@ -55,6 +61,8 @@
packages.${system} = {
default = mkShell { buildInputs = with pkgs; [ just ]; };
nvim = neovimWithConfig;
};
formatter.${system} = pkgs.nixfmt-rfc-style;