Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uninstalling Homebrew Casks doesn't work as expected #127

Open
benedictdaske opened this issue Nov 20, 2024 · 2 comments
Open

Uninstalling Homebrew Casks doesn't work as expected #127

benedictdaske opened this issue Nov 20, 2024 · 2 comments

Comments

@benedictdaske
Copy link

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?

@tacomilkshake
Copy link

I just had this problem today and reminded myself why I don't like Nix.

To solve this myself, I just ran:

brew uninstall --cask sublime

@benedictdaske
Copy link
Author

benedictdaske commented Nov 26, 2024

First of all thanks! I am gonna try this in a few days when I'm done writing my thesis, to ensure no accidental mess-ups interfere with my deadline...

Kind of a weird solution though, right? That should be managed by nix-homebrew, but somehow I didn't find a config option
\ (o_O)/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants