summaryrefslogtreecommitdiff
path: root/pkgs
diff options
context:
space:
mode:
authorMichael Hoang <enzime@users.noreply.github.com>2024-11-11 23:45:00 +1100
committerMichael Hoang <enzime@users.noreply.github.com>2024-11-17 01:11:27 +1100
commitec5fce6061c26095f6de3a9cb9398171aa3b8c86 (patch)
tree64928f05e87848dddf2d6530a5a470ec19f49f65 /pkgs
parente07f08c0dcbf2f10a51f76ac2910c25e25ff4d84 (diff)
uninstaller: check `nix-daemon` works after restoring
Diffstat (limited to 'pkgs')
-rw-r--r--pkgs/darwin-uninstaller/default.nix3
1 files changed, 2 insertions, 1 deletions
diff --git a/pkgs/darwin-uninstaller/default.nix b/pkgs/darwin-uninstaller/default.nix
index f6e0450..da58682 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
'';
};
}