This is a simple Nix MacOS flake and shows the progress and final state of the config used in the video Walkthrough of Nix Install and Setup on MacOS.
Take a look at earlier commits to see what a really basic single file flake looks like with nix-darwin and home-manager.
This is a live walkthrough of an install of Nix on a fresh MacOS system and a tutorial showing how to make a declarative config that will meet all of your needs on MacOS.
Steps:
- Install of nix
- Creation of basic flake
- Addition of nix-darwin and home-manager
- Initial bootstrap of config
- Config enhancements showing linked config files and homebrew control
- Demonstration of adding a remote flake as a package
- Refactor of single nix file into multiple files and other simplifications
Nix example code: