/ flake.nix
flake.nix
1 { 2 inputs = { 3 nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; 4 nixneovimplugins.url = github:NixNeovim/NixNeovimPlugins; 5 nvf.url = "github:notashelf/nvf"; 6 }; 7 8 outputs = {nixpkgs, ...} @ inputs: let 9 nvf-config = inputs.nvf.lib.neovimConfiguration { 10 pkgs = import nixpkgs { 11 system = "x86_64-linux"; 12 overlays = [inputs.nixneovimplugins.overlays.default]; 13 }; 14 extraSpecialArgs = {inherit inputs;}; 15 modules = [ 16 ./nvf-config.nix 17 ]; 18 }; 19 in { 20 packages.x86_64-linux = { 21 # Set the default package to the wrapped instance of Neovim. 22 # This will allow running your Neovim configuration with 23 # `nix run` and in addition, sharing your configuration with 24 # other users in case your repository is public. 25 h3k-nvim = nvf-config.neovim; 26 default = nvf-config.neovim; 27 }; 28 }; 29 }