I Use Nix on macOS
blog.6nok.org
I Use Nix on macOS
1–10 of 18 posts
Re: I Use Nix on macOS
#2Re: I Use Nix on macOS
#3Re: I Use Nix on macOS
#4Re: I Use Nix on macOS
#5So.. that being said, you can setup home-manager to install and configure things from git. Using flakes makes it more reproducible.
These means that you can just git clone and 'home-manager switch' and setup everything from scratch.
I do this on both mac and linux machines (ubuntu 20) and quite often use the same nix expressions.
I'd highly recommend that workflow, since it's git, you can do anything you want. Go back a month via git on a branch and make that machine exist again.
It really makes managing software fearless
Re: I Use Nix on macOS
#6> This is a game-changer, you don’t have to pollute your system to run a one-off command, or you can try a package out before committing to installing it.
Is there a way to run the command isolated from the rest of the system? Because while this is nice it will still leave behind whatever configuration files / caches the program created on start up.
Re: I Use Nix on macOS
#7> nix run nixpkgs#cowsay > This is a game-changer, you don’t have to pollute your system to run a one-off command, or you can try a package out before committing to installing it. Is there a way to run the command isolated from the rest of the system? Because while this is nice it will still leave behind whatever configuration files / caches the program created on start up.
It's tricky because said program probably needs to access the original $HOME
Re: I Use Nix on macOS
#8Also, no more docker! docker on macOS was always a pain.
I made it easy for others to try if you’re interested, almost 800 stars now:
Re: I Use Nix on macOS
#9> nix run nixpkgs#cowsay > This is a game-changer, you don’t have to pollute your system to run a one-off command, or you can try a package out before committing to installing it. Is there a way to run the command isolated from the rest of the system? Because while this is nice it will still leave behind whatever configuration files / caches the program created on start up.
Re: I Use Nix on macOS
#10There exists nix-darwin, which allows for installing and configuring graphical apps on macOS. However, in my experience the OS starts freaking out about permissions every time you build --switch. Something about changing around the symlinks to .app files confuses it and resets permissions and duplicates autostart entries and such, which unfortunately got me to give up on it.
Maybe mixing sudo / user permissions during initial installation broke it. Nix is pretty unforgiving with not great error messages.