Hacker News new | ask | show | jobs
by amardeep 850 days ago
Just a shout out to nix-darwin[1]. It is nix, so initial setup is a bit involved. But then it truly makes it easy to configure everything in one place including mac defaults, homebrew apps declaratively and mas apps etc.

There is a sample config in nix-darwin repo[2].

[1] https://github.com/LnL7/nix-darwin

[2] https://github.com/LnL7/nix-darwin/blob/master/modules/examp...

3 comments

This is also my favorite way of setting up MacBooks. I love being able to set up all my Linux, macOS and Windows[1] machines from a single flake.

[1]: https://lgug2z.com/articles/managing-dotfiles-on-windows-11-...

Sounds too much hassle for something you want to come back to every few years, when the nix commands and procedure have changed anyway.
I skip nix-darwin and use just home-manager. Does all I need. Don't really see the point of adding nix-darwin.