templates/minimal-flake-parts: add formatter

This commit is contained in:
a-kenji
2024-11-09 23:08:14 +01:00
parent 06724b4ab4
commit acf97df754
2 changed files with 11 additions and 1 deletions

View File

@@ -8,7 +8,6 @@
flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.url = "github:hercules-ci/flake-parts";
flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs";
}; };
outputs = outputs =
@@ -27,6 +26,7 @@
./checks.nix ./checks.nix
./clan.nix ./clan.nix
./devshells.nix ./devshells.nix
./formatter.nix
]; ];
} }
); );

View File

@@ -0,0 +1,10 @@
_: {
perSystem =
{
pkgs,
...
}:
{
formatter = pkgs.nixfmt;
};
}