From 9107f6244e11fe6e711922353a73adbe278604af Mon Sep 17 00:00:00 2001 From: oppiliappan Date: Fri, 29 May 2026 08:58:53 +0000 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 file(s) changed, 3 insertion(s)(+), 5 deletion(s)(-) diff --git a/.tangled/workflows/fmt.yml b/.tangled/workflows/fmt.yml --- a/.tangled/workflows/fmt.yml +++ b/.tangled/workflows/fmt.yml @@ -9,4 +9,4 @@ - name: "Check formatting" 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 --- a/flake.nix +++ b/flake.nix @@ -261,10 +261,6 @@ export BROWSERSLIST_IGNORE_OLD_DATA=true ${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 @@ imports = [./nix/modules/spindle.nix]; services.tangled.spindle.package = lib.mkDefault self.packages.${pkgs.stdenv.hostPlatform.system}.spindle; }; + + formatter = forAllSystems (system: self.packages.${system}.treefmt-wrapper); }; } -- tangled.sh