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.
In your flake.nix, add this repository as an input and pass the inputs down to your
system configuration:
{
inputs = {
# ... other inputs ...
neovim-config.url = "github:k3dom/nvim";
};
outputs = {nixpkgs, ...} @ inputs: {
nixosConfigurations.myhost = nixpkgs.lib.nixosSystem {
specialArgs = {inherit inputs;};
modules = [./configuration.nix];
};
};
}The flake exposes a single package, so add it to your system (or Home Manager) packages:
{
pkgs,
inputs,
...
}: {
environment.systemPackages = [
inputs.neovim-config.packages.${pkgs.stdenv.hostPlatform.system}.default
];
}The package provides nvim along with the vi and vim aliases.