This commit is contained in:
antoine 2026-03-22 09:48:53 +01:00
commit 6eae514dab
Signed by: antoine
GPG key ID: 9EB6BAADC51B6133
15 changed files with 500 additions and 0 deletions

32
flake.nix Normal file
View 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]}
'';
};
};
}