dustinlyons / nixos-config

General purpose Nix configuration for macOS / NixOS with starter templates + step-by-step guides ✨
BSD 3-Clause "New" or "Revised" License
1.79k stars 113 forks source link

Uninstalling Homebrew Casks doesn't work as expected #127

Open benedictdaske opened 1 day ago

benedictdaske commented 1 day ago

I am trying to uninstall my Sublime cask. So i removed the cask from the list and my home-manager has the 'onActivation.cleanup = "zap"' option set. When I do nix run .#build-switch, I get:

Error: Refusing to untap homebrew/cask because it contains the following installed formulae or casks:

followed by a list of all my casks, including sublime-text.

I am super helpless, feel like I've searched every post out there and the documentation of nix-homemanager.

Is there any known solution so far?