Use alejandra for formatting Nix files

This commit is contained in:
Oliver Davies 2024-02-14 08:00:00 +00:00
parent 944db525e2
commit cbe2b63679

View file

@ -1,18 +1,24 @@
# Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs. # Do not edit this file. It is automatically generated by https://www.oliverdavies.uk/build-configs.
{ {
inputs = { inputs = {
devshell.url = "github:numtide/devshell"; devshell.url = "github:numtide/devshell";
nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable"; nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
}; };
outputs = inputs@{ flake-parts, ... }: outputs = inputs @ {flake-parts, ...}:
flake-parts.lib.mkFlake { inherit inputs; } { flake-parts.lib.mkFlake {inherit inputs;} {
imports = [ inputs.devshell.flakeModule ]; imports = [inputs.devshell.flakeModule];
systems = [ "x86_64-linux" ]; systems = ["x86_64-linux"];
perSystem = { config, self', inputs', pkgs, system, ... }: { perSystem = {
config,
self',
inputs',
pkgs,
system,
...
}: {
devshells.default = { devshells.default = {
packages = with pkgs; [ packages = with pkgs; [
"nodePackages.pnpm" "nodePackages.pnpm"
@ -21,6 +27,8 @@
"php81Packages.composer" "php81Packages.composer"
]; ];
}; };
formatter = pkgs.alejandra;
}; };
}; };
} }