Format with nixfmt

This commit is contained in:
Oliver Davies 2024-03-19 12:58:51 +00:00
parent 1ebd61b18c
commit 40d76bde05

View file

@ -5,20 +5,15 @@
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, ... }: {
formatter = pkgs.nixfmt;
perSystem = {
config,
self',
inputs',
pkgs,
system,
...
}: {
devshells.default = { devshells.default = {
packages = with pkgs; [ packages = with pkgs; [
"nodePackages.pnpm" "nodePackages.pnpm"
@ -27,8 +22,6 @@
"php82Packages.composer" "php82Packages.composer"
]; ];
}; };
formatter = pkgs.alejandra;
}; };
}; };
} }