init
This commit is contained in:
commit
6eae514dab
15 changed files with 500 additions and 0 deletions
32
flake.nix
Normal file
32
flake.nix
Normal file
|
|
@ -0,0 +1,32 @@
|
|||
{
|
||||
description = "Antoine's neovim config";
|
||||
|
||||
inputs = {
|
||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||
nvf.url = "github:notashelf/nvf";
|
||||
nvf.inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
|
||||
outputs = {
|
||||
nixpkgs,
|
||||
nvf,
|
||||
...
|
||||
}: let
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
neovim = (nvf.lib.neovimConfiguration {
|
||||
inherit pkgs;
|
||||
modules = [./config.nix];
|
||||
}).neovim;
|
||||
in {
|
||||
packages.${system}.default = pkgs.symlinkJoin {
|
||||
name = "nvim";
|
||||
paths = [neovim];
|
||||
nativeBuildInputs = [pkgs.makeWrapper];
|
||||
postBuild = ''
|
||||
wrapProgram $out/bin/nvim \
|
||||
--prefix PATH : ${pkgs.lib.makeBinPath [pkgs.git pkgs.fzf]}
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue