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; + }; +}