Personal neovim configuration made with Nix and nixvim.
To quickly run your Neovim configuration with nix, simply execute:
nix run .
This command builds and launches your configuration based on the default package setup.
If you want to integrate the configuration into your NixOS system, you can add it as a flake input and then include it as a module.
In your flake.nix
, add your Neovim configuration repository as an input:
{
inputs = {
# ... other inputs ...
neovim-config = {
url = "github:kedom1337/nvim";
# Optionally, specify a ref or branch if needed.
};
};
outputs = { self, nixpkgs, neovim-config, ... }:
{
# your outputs configuration
};
}
In your NixOS configuration (e.g., configuration.nix
), import the module and add the package. Replace ${system}
with your system identifier (e.g., x86_64-linux
):
{ config, pkgs, ... }:
{
environment.systemPackages = with pkgs; [
neovim-config.nvim.packages.${system}.default
];
# Additional configuration if required
}
With these steps, your system will use the Neovim configuration provided by your flake, and you can manage it directly through your NixOS configuration.