From 92c04f4bd8d97da5e3ca4acf64a61ee82bd993c7 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Wed, 21 Feb 2024 09:49:32 +0800 Subject: [PATCH] flake: simplify --- flake.nix | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) diff --git a/flake.nix b/flake.nix index 53ce806..3467d8e 100644 --- a/flake.nix +++ b/flake.nix @@ -11,17 +11,15 @@ system: let inherit (inputs.nixpkgs) lib; pkgs = inputs.nixpkgs.legacyPackages.${system}; + runtimeDeps = with pkgs; [ + # mason / tree-sitter + gcc + cargo + ]; in { - packages.default = let - runtimeDeps = with pkgs; [ - # mason / tree-sitter - gcc - cargo - ]; - in + packages.default = pkgs.wrapNeovimUnstable pkgs.neovim-unwrapped - (pkgs.neovimUtils.makeNeovimConfig - { + (pkgs.neovimUtils.makeNeovimConfig { customRC = '' set runtimepath^=${./.} source ${./.}/init.lua @@ -32,8 +30,8 @@ }); devShells.default = pkgs.mkShell { - nativeBuildInputs = [ - pkgs.stylua + nativeBuildInputs = with pkgs; [ + stylua ]; }; }