diff --git a/README.md b/README.md index 48d8f51..e50e35c 100644 --- a/README.md +++ b/README.md @@ -40,3 +40,20 @@ Please don't. 3. Install NixOS `$ nixos-install --flake #` + +### macOS: + +1. Install Nix using [`Determinate Nix Installer`](https://github.com/DeterminateSystems/nix-installer) + + `$ curl --proto '=https' --tlsv1.2 -fsSL https://install.determinate.systems/nix | sh -s -- install` + +2. Clone this repository + + `$ git clone https://github.com/Guanran928/flake.git` + +3. Add your device's hardware configuration in `./flake.nix` and + `./hosts/` + +4. Install [`nix-darwin`](https://github.com/LnL7/nix-darwin?tab=readme-ov-file#flakes) + + `nix run nix-darwin -- switch --flake #`