flake-modules/dev: cosmetic refactor

This commit is contained in:
Gaetan Lepage 2024-12-10 09:22:57 +01:00 committed by nix-infra-bot
parent 99cb3fb8fc
commit 8dfa5fa8a2

View file

@ -12,9 +12,6 @@
system, system,
... ...
}: }:
let
fmt = pkgs.nixfmt-rfc-style;
in
lib.optionalAttrs (inputs.treefmt-nix ? flakeModule) { lib.optionalAttrs (inputs.treefmt-nix ? flakeModule) {
treefmt.config = { treefmt.config = {
projectRootFile = "flake.nix"; projectRootFile = "flake.nix";
@ -24,7 +21,7 @@
isort.enable = true; isort.enable = true;
nixfmt = { nixfmt = {
enable = true; enable = true;
package = fmt; package = pkgs.nixfmt-rfc-style;
}; };
prettier = { prettier = {
enable = true; enable = true;