Configuration files for NixOS and Home Manager. Feel free to browse and see what works for you. Reading through other people's configurations was very helpful for me as I was learning Nix.
To bootstrap a Darwin system configuration.
-
sh <(curl -L https://nixos.org/nix/install) -
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"`
-
nix-build https://github.com/LnL7/nix-darwin/archive/master.tar.gz -A installer ./result/bin/darwin-installer
-
Clone Repository
rm -rf ~/.nixpkgs git clone git@github.com:DylanRJohnston/nixos.git ~/.nixpkgs
-
Configure System
darwin-rebuild switch --flake ~/.nixpkgs
flake.nix evaluates all Nix files under modules/ and hosts/ through import-tree. New modules and hosts are discovered automatically without adding explicit imports to the flake.
modules/defines composablearcaspects and their tests.hosts/declares each managed host and the aspects it composes.docs/architecture/decisions/records significant architecture decisions, alternatives, and supersession history as lightweight ADRs.agents/contains current project guidance and focused operational notes for coding agents.
The configuration uses den to map each host's selected aspects into NixOS, nix-darwin, Home Manager, and user-level configuration.