snowfallorg / flake

Simplify Nix Flakes on the command line.
Other
94 stars 5 forks source link

Homebrew support #5

Closed khaneliman closed 11 months ago

khaneliman commented 1 year ago

flake switch on darwin. Any workaround or just not usable when using homebrew module?

Error: Running Homebrew as root is extremely dangerous and no longer supported.
As Homebrew does not drop privileges on installation you would be giving all 
build scripts full access to your system.
jakehamilton commented 1 year ago

Hmm. I thought that sudo was required for darwin-rebuild? Does it succeed when not run with sudo? If so we can remove the privileged wrapper for Darwin and that should resolve this.

khaneliman commented 1 year ago

I dont use sudo for my darwin-rebuild command. It self elevates. So, yeah... I'd probably just remove privileged from https://github.com/snowfallorg/flake/blob/main/packages/flake/flake.sh#L272