1
0
Fork 0
mirror of https://github.com/LnL7/nix-darwin.git synced 2024-12-14 11:57:34 +00:00

uninstaller: remove /Applications/Nix Apps

This commit is contained in:
Michael Hoang 2023-07-11 18:52:49 +10:00
parent cad8954f75
commit ac9a366aed
2 changed files with 6 additions and 8 deletions

View file

@ -14,10 +14,8 @@ with lib;
launchd.user.agents = mkForce {};
system.activationScripts.postUserActivation.text = mkAfter ''
if test -L ~/Applications; then
rm ~/Applications
elif test -L ~/Applications/Nix\ Apps; then
rm ~/Applications/Nix\ Apps
if test -L /Applications/Nix\ Apps; then
rm /Applications/Nix\ Apps
fi
if test -L ~/.nix-defexpr/channels/darwin; then

View file

@ -45,10 +45,10 @@ stdenv.mkDerivation {
echo >&2
echo >&2 "Uninstalling nix-darwin, this will:"
echo >&2
echo >&2 " - remove ~/Applications link."
echo >&2 " - cleanup static /etc files."
echo >&2 " - disable and remove all launchd services managed by nix-darwin."
echo >&2 " - restore daemon service from nix installer (only when this is a multi-user install)."
echo >&2 " - remove /Applications/Nix Apps symlink"
echo >&2 " - cleanup static /etc files"
echo >&2 " - disable and remove all launchd services managed by nix-darwin"
echo >&2 " - restore daemon service from nix installer (only when this is a multi-user install)"
echo >&2
if test -t 0; then