From 4700a988b3ea706868462f1d527189ac754e2599 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Tue, 7 Nov 2023 14:27:18 +0300 Subject: [PATCH] flake: provide lsp and diagnostic helpers in default shell --- flake.nix | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/flake.nix b/flake.nix index 9196ec8..25ce941 100644 --- a/flake.nix +++ b/flake.nix @@ -38,12 +38,19 @@ }; perSystem = { + self', config, pkgs, ... }: { - devShells.default = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];}; formatter = pkgs.alejandra; + devShells = { + default = self'.devShells.lsp; + nvim-nix = pkgs.mkShell {nativeBuildInputs = [config.packages.nix];}; + lsp = pkgs.mkShell { + nativeBuildInputs = with pkgs; [nil statix deadnix]; + }; + }; }; };