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

uninstaller: fix removing /Applications/Nix Apps

This commit is contained in:
Michael Hoang 2023-07-12 18:56:13 +10:00
parent eb22022ba8
commit 8eb09d4d0b

View file

@ -14,16 +14,16 @@ with lib;
launchd.user.agents = mkForce {};
system.activationScripts.postUserActivation.text = mkAfter ''
if test -L /Applications/Nix\ Apps; then
rm /Applications/Nix\ Apps
fi
if test -L ~/.nix-defexpr/channels/darwin; then
nix-channel --remove darwin || true
fi
'';
system.activationScripts.postActivation.text = mkAfter ''
if test -L /Applications/Nix\ Apps; then
rm /Applications/Nix\ Apps
fi
if test -L /etc/static; then
rm /etc/static
fi