From 23f8df7396d35744069a4bda0d1d38a55ff64b79 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Mon, 21 Jul 2025 07:31:45 -0700 Subject: refactoring to use flake-parts and automatic imports of hosts This is the first step in a large refactoring to use flake-parts, and to automatically imports hosts based on paths. --- nix/flake/formatter.nix | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 nix/flake/formatter.nix (limited to 'nix/flake/formatter.nix') diff --git a/nix/flake/formatter.nix b/nix/flake/formatter.nix new file mode 100644 index 0000000..44c0190 --- /dev/null +++ b/nix/flake/formatter.nix @@ -0,0 +1,17 @@ +{ inputs, ... }: +{ + perSystem = + { pkgs, ... }: + let + treefmtEval = inputs.treefmt-nix.lib.evalModule pkgs { + projectRootFile = "flake.nix"; + programs = { + nixfmt.enable = true; + deadnix.enable = true; + }; + }; + in + { + formatter = treefmtEval.config.build.wrapper; + }; +} -- cgit v1.2.3