diff options
| author | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-11 23:45:00 +1100 |
|---|---|---|
| committer | Michael Hoang <enzime@users.noreply.github.com> | 2024-11-17 01:11:27 +1100 |
| commit | ec5fce6061c26095f6de3a9cb9398171aa3b8c86 (patch) | |
| tree | 64928f05e87848dddf2d6530a5a470ec19f49f65 /pkgs | |
| parent | e07f08c0dcbf2f10a51f76ac2910c25e25ff4d84 (diff) | |
uninstaller: check `nix-daemon` works after restoring
Diffstat (limited to 'pkgs')
| -rw-r--r-- | pkgs/darwin-uninstaller/default.nix | 3 |
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 ''; }; } |
