From 37b6537448536ea7d7327227af422ef8fbb96da2 Mon Sep 17 00:00:00 2001 From: Guanran Wang Date: Mon, 26 Feb 2024 13:15:41 +0800 Subject: [PATCH] docs/readme: add darwin installation guide --- README.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 #`