From 535a7876a3272e5269572ea705592efcbc2a6728 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Ha=CC=88cker?= Date: Mon, 25 Aug 2025 19:49:24 +0200 Subject: [PATCH] Add stop script This is usefull when the rosetta builder hangs, or you want to manually stop the builder. --- flake.nix | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/flake.nix b/flake.nix index 4324382..6a81b5d 100644 --- a/flake.nix +++ b/flake.nix @@ -34,6 +34,19 @@ }; }; + apps."${darwinSystem}".stop = + let + pkgs = nixpkgs.legacyPackages."${darwinSystem}"; + stopScript = pkgs.writeShellScript "stop-rosetta-builder" '' + sudo launchctl kill -15 system/org.nixos.rosetta-builderd + ''; + in + { + type = "app"; + program = "${stopScript}"; + description = "Stop the rosetta-builder lima VM"; + }; + devShells."${darwinSystem}".default = let pkgs = nixpkgs.legacyPackages."${darwinSystem}";