Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

For anyone curious, I have a unified setup that works across my work M1 (currently bitrotting), work Ubuntu (hurrah Intune for Ubuntu!), and personal NixOS[1]. You'll probably find my mkChoose function particularly interesting[2], which makes parameterizing attrsets and lists a little easier for different hosts (I currently don't have/know a way to discriminate between Linux and NixOS, so you need to pass a function which does that[3]).

If you aren't using home-manager[4] yet, I strongly recommend taking a look at it.

nix-darwin significantly elevates the competency of MacOS.

[1]: https://gitlab.com/jcdickinson/nix/-/tree/darwin [2]: https://gitlab.com/jcdickinson/nix/-/blob/darwin/packages/ho... [3]: https://gitlab.com/jcdickinson/nix/-/blob/darwin/flake.nix#L... [4]: https://nix-community.github.io/home-manager/



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: