3 ms·
Nix is pretty usable for both desktops and headless servers. Personally, I even use it on macOS without much trouble. My system looks like any other install of
by OmarAssadi 4y ago
Nix is pretty usable for both desktops and headless servers. Personally, I even use it on macOS without much trouble.
My system looks like any other install of Ventura, but all of my configuration, ranging from the terminal and VS Code to macOS-specific system preferences and Safari, is done declaratively in Nix [1]. The overwhelming majority of my installed software also comes from Nix packages, with some exceptions for stuff that is not packaged yet (e.g., I have Podman Desktop, the macOS ZFS port, Lulu, yubikey-manager-qt installed through Homebrew -- fortunately nix-darwin [2] also just lets me have an set of brews/casks in my config).
It was been a bit of a nightmare at first since the error messages are kind of horrific, and there can be a lack of good examples/docs on flakes. But I think the weekend worth of time I invested was worth it since I no longer need to rely on hacky shellscripts or remember to manually configure anything.
[1]: <https://github.com/nix-community/home-manager https://github.com/nix-community/home-manager>
[2]: <https://github.com/LnL7/nix-darwin https://github.com/LnL7/nix-darwin>
- pxc 4y agoHoly crap! I had no idea that Nix-Darwin will even install, configure, and wrap Homebrew for you now. That's awesome. Love the inclusive, impure approach. The Homebrew module for Nix-Darwin also looks awesome, like extremely feature-complete.
- JamesSwift 4y agoInteresting, so you are running both home-manager and nix-darwin? When I got into the game, it seemed like they were a bit of a one-or-the-other. I use home-manager but keep homebrew around for some cask management and its mostly "out of band" right now, so I'd be interested to move that "in band" if possible.