nix: set formatter & use nil instead of rnix-lsp (#51409)

Allows formatting everything with `nix fmt`

[nil](https://github.com/oxalica/nil) appears more maintained and higher
quality than rnix-lsp

## Test plan

N/A, nix stuff
This commit is contained in:
Noah S-C 2023-05-03 13:56:44 +01:00 committed by GitHub
parent e7f1037e2b
commit 9f7df7ca07
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -17,6 +17,8 @@
}
);
formatter = genAttrs defaultSystems (system: nixpkgs.legacyPackages.${system}.nixpkgs-fmt);
# Pin a specific version of universal-ctags to the same version as in cmd/symbols/ctags-install-alpine.sh.
overlays.ctags = (import ./dev/nix/ctags.nix { inherit nixpkgs utils; inherit (nixpkgs) lib; }).overlay;

View File

@ -77,7 +77,8 @@ pkgs.mkShell {
# The packages in the `buildInputs` list will be added to the PATH in our shell
nativeBuildInputs = with pkgs; [
rnix-lsp
# nix language server
nil
# Our core DB.
postgresql_13