templates/minimal-flake-parts: add formatter
This commit is contained in:
@@ -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
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|||||||
10
templates/minimal-flake-parts/formatter.nix
Normal file
10
templates/minimal-flake-parts/formatter.nix
Normal file
@@ -0,0 +1,10 @@
|
|||||||
|
_: {
|
||||||
|
perSystem =
|
||||||
|
{
|
||||||
|
pkgs,
|
||||||
|
...
|
||||||
|
}:
|
||||||
|
{
|
||||||
|
formatter = pkgs.nixfmt;
|
||||||
|
};
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user