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

Merge pull request #734 from Enzime/uninstall-nix-apps

uninstaller: fix removing `/Applications/Nix Apps`
This commit is contained in:
Domen Kožar 2023-07-12 13:02:28 +01:00 committed by GitHub
commit 43ce086813
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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