From acf97df7545895b46730c49c4a7d4ae43079474e Mon Sep 17 00:00:00 2001 From: a-kenji Date: Sat, 9 Nov 2024 23:08:14 +0100 Subject: [PATCH] templates/minimal-flake-parts: add formatter --- templates/minimal-flake-parts/flake.nix | 2 +- templates/minimal-flake-parts/formatter.nix | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) create mode 100644 templates/minimal-flake-parts/formatter.nix diff --git a/templates/minimal-flake-parts/flake.nix b/templates/minimal-flake-parts/flake.nix index 2dca03025..bf3f961e4 100644 --- a/templates/minimal-flake-parts/flake.nix +++ b/templates/minimal-flake-parts/flake.nix @@ -8,7 +8,6 @@ flake-parts.url = "github:hercules-ci/flake-parts"; flake-parts.inputs.nixpkgs-lib.follows = "nixpkgs"; - }; outputs = @@ -27,6 +26,7 @@ ./checks.nix ./clan.nix ./devshells.nix + ./formatter.nix ]; } ); diff --git a/templates/minimal-flake-parts/formatter.nix b/templates/minimal-flake-parts/formatter.nix new file mode 100644 index 000000000..ec092fae4 --- /dev/null +++ b/templates/minimal-flake-parts/formatter.nix @@ -0,0 +1,10 @@ +_: { + perSystem = + { + pkgs, + ... + }: + { + formatter = pkgs.nixfmt; + }; +}