Skip to content

Instantly share code, notes, and snippets.

View tobsz's full-sized avatar

Tobias Sandmann tobsz

  • Berlin, Germany
  • 08:33 (UTC +01:00)
View GitHub Profile
@tobsz
tobsz / remove-nix-darwin.sh
Created February 11, 2024 22:46 — forked from gil0mendes/remove-nix-darwin.sh
Remove Nix from Darwin
nix-env --uninstall '*'
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A uninstaller
./result/bin/darwin-uninstaller
sudo launchctl unload /Library/LaunchDaemon/org.nixos.nix-daemon.plist
sudo rm /Library/LaunchDaemons/org.nixos.nix-daemon.plist
sudo launchctl unload /Library/LaunchDaemons/org.nixos.activate-system.plist
sudo rm /Library/LaunchDaemons/org.nixos.activate-system.plist
sudo rm -rf /etc/nix /var/root/.nix-profile /var/root/.nix-defexpr /var/root/.nix-channels ~/.nix-profile ~/.nix-defexpr ~/.nix-channels