Small Nix utility to create an M1 aarch64-darwin (nixFlakes + nix-darwin + home-manager) system.
NOTE: This repo is now read-only, since I (vic) am no longer using MacOS since early 2023. You can still find a much more maintained and better alternative at https://github.com/srid/nixos-flake
nix flake new my-system --template github:vic/mk-darwin-system#minimal
cd my-system
git init
git add .
Change the values of hostName
and userName
inside flake.nix
.
Create files inside nix/hostConfigurations
and nix/homeConfigurations
.
See if everything is ok by running: nix flake check
Activate your system running: nix run
yours, send a pull-request.
nix/hostConfigurations
can set any nix-darwin option.nix/homeConfigurations
can set any home-manager option.imports = []
.