From 9107f6244e11fe6e711922353a73adbe278604af Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 29 May 2026 09:58:53 +0100 Subject: [PATCH] nix: remove `fmt` app and use `formatter` flake output thanks isabelroses.com Signed-off-by: oppiliappan --- .tangled/workflows/fmt.yml | 2 +- flake.nix | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/.tangled/workflows/fmt.yml b/.tangled/workflows/fmt.yml index 704d4eaa..eb964281 100644 --- a/.tangled/workflows/fmt.yml +++ b/.tangled/workflows/fmt.yml @@ -9,4 +9,4 @@ steps: command: | mkdir -p bobbin/crates/types/src/_lex [ -f bobbin/crates/types/src/_lex/lib.rs ] || : > bobbin/crates/types/src/_lex/lib.rs - nix run .#fmt -- --ci + nix fmt -- --ci diff --git a/flake.nix b/flake.nix index b86b0a8d..c227919e 100644 --- a/flake.nix +++ b/flake.nix @@ -261,10 +261,6 @@ ${pkgs.tailwindcss}/bin/tailwindcss --watch=always -i input.css -o ./appview/pages/static/tw.css ''; in { - fmt = { - type = "app"; - program = pkgs.lib.getExe packages'.treefmt-wrapper; - }; watch-appview = { type = "app"; program = toString (pkgs.writeShellScript "watch-appview" '' @@ -405,5 +401,7 @@ services.tangled.spindle.package = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.spindle; }; + + formatter = forAllSystems (system: self.packages.${system}.treefmt-wrapper); }; } -- 2.51.2