From d00737c2cc213e383852e2e2bd136d06b64e2c34 Mon Sep 17 00:00:00 2001 From: Michael Hoang Date: Mon, 11 Nov 2024 23:45:00 +1100 Subject: [PATCH] uninstaller: check `nix-daemon` works after restoring --- pkgs/darwin-uninstaller/default.nix | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/pkgs/darwin-uninstaller/default.nix b/pkgs/darwin-uninstaller/default.nix index c862cb7c9..4f27d128f 100644 --- a/pkgs/darwin-uninstaller/default.nix +++ b/pkgs/darwin-uninstaller/default.nix @@ -89,8 +89,9 @@ in writeShellApplication { pgrep -l nix-daemon test -e /Library/LaunchDaemons/org.nixos.nix-daemon.plist [[ "$(shasum -a 256 /Library/LaunchDaemons/org.nixos.nix-daemon.plist | awk '{print $1}')" == "$(shasum -a 256 /Library/LaunchDaemons/org.nixos.nix-daemon.plist | awk '{print $1}')" ]] - echo >&2 ok + nix-store --store daemon -q --hash ${stdenv.shell} fi + echo >&2 ok ''; }; }