NeoVIM Configuration using NixNeovim
Warning
This repository has been archived in favor of my
NixOS configuration . You
may still be able to get useful information out of this repository, but it is
not a good idea to use it.
This is my NeoVIM configuration using
NixNeovim . It is only suppossed to
support my use case so only use it as a reference and do not depend on it.
You must have:
You may need:
Nixpkgs unstable
A NixOS flake configuration
That is what I use, therefore I do not consider any other cases in my
configuration.
Check examples/flake.nix
and examples/home.nix
(I don't promise I will keep these up to date):
{
inputs = {
nixpkgs . url = "nixpkgs/nixos-unstable" ;
home-manager . url = "github:nix-community/home-manager" ;
home-manager . inputs . nixpkgs . follows = "nixpkgs" ;
nvim-config . url = "github:jalil-salame/nvim-config" ;
nvim-config . inputs . nixpkgs . follows = "nixpkgs" ;
nvim-config . inputs . home-manager . follows = "home-manager" ;
# nvim-config.inputs.flake-utils.follows = "flake-utils"; # If you have flake-utils as an input
} ;
outputs = {
self ,
nixpkgs ,
home-manager ,
nvim-config ,
...
} : let
system = "x86_64-linux" ;
pkgs = import nixpkgs {
inherit system ;
overlays = [ nvim-config . overlays . default ] ;
} ;
nvim-modules = { inherit ( nvim-config . nixosModules ) nvim-config nixneovim ; } ;
hostname = "my-pc" ;
in {
nixosConfigurations . ${ hostname } = {
inherit system pkgs ;
modules = [
./configuration.nix
home-manager . nixosModules . home-manager
{
home-manager . users . name = ./home.nix ;
home-manager . extraSpecialArgs = { inherit nvim-modules ; } ;
}
] ;
} ;
} ;
}
{ nvim-modules , ...} : {
imports = [ nvim-modules . nixneovim nvim-modules . nvim-config ] ;
# ...
}